Package mage.abilities.common

Examples of mage.abilities.common.DiesTriggeredAbility.addTarget()


        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Yosei, the Morning Star dies, target player skips his or her next untap step. Tap up to five target permanents that player controls.
        Ability ability = new DiesTriggeredAbility(new SkipNextPlayerUntapStepEffect());
        ability.addTarget(new TargetPlayer());
        ability.addTarget(new YoseiTheMorningStarTarget());
        ability.addEffect(new YoseiTheMorningStarTapEffect());
        this.addAbility(ability);
    }
View Full Code Here


        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Yosei, the Morning Star dies, target player skips his or her next untap step. Tap up to five target permanents that player controls.
        Ability ability = new DiesTriggeredAbility(new SkipNextPlayerUntapStepEffect());
        ability.addTarget(new TargetPlayer());
        ability.addTarget(new YoseiTheMorningStarTarget());
        ability.addEffect(new YoseiTheMorningStarTapEffect());
        this.addAbility(ability);
    }

    public YoseiTheMorningStar(final YoseiTheMorningStar card) {
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // When Goblin Arsonist dies, you may have it deal 1 damage to target creature or player.
        Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(1), true);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

    public GoblinArsonist(final GoblinArsonist card) {
        super(card);
View Full Code Here

        this.subtype.add("Insect");
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        this.addAbility(InfectAbility.getInstance());
        Ability ability = new DiesTriggeredAbility(new AddCountersTargetEffect(CounterType.M1M1.createInstance()), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

    public Necropede (final Necropede card) {
        super(card);
View Full Code Here

        this.subtype.add("Spirit");
        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(1);
        Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(2), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

    public BogardanFirefiend(final BogardanFirefiend card) {
        super(card);
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // When Drainpipe Vermin dies, you may pay {B}. If you do, target player discards a card.
        Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(new DiscardTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.B)), false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

    public DrainpipeVermin(final DrainpipeVermin card) {
        super(card);
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // When Black Cat dies, target opponent discards a card at random.
        Ability ability = new DiesTriggeredAbility(new DiscardTargetEffect(1, true),false);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }

    public BlackCat(final BlackCat card) {
        super(card);
View Full Code Here

        this.power = new MageInt(4);
        this.toughness = new MageInt(4);

        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new DiesTriggeredAbility(new ExileTargetEffect(), false);
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }

    public ArchonOfJustice(final ArchonOfJustice card) {
        super(card);
View Full Code Here

        // When you cycle Jund Sojourners or it dies, you may have it deal 1 damage to target creature or player.
        Ability ability1 = new CycleTriggeredAbility(new DamageTargetEffect(1));
        Ability ability2 = new DiesTriggeredAbility(new DamageTargetEffect(1));
        ability1.addTarget(new TargetCreatureOrPlayer());
        ability2.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{R}")));
View Full Code Here

        this.color.setRed(true);

        // Until end of turn, creatures you control gain "When this creature dies, it deals 2 damage to target creature an opponent controls."
        TriggeredAbility ability = new DiesTriggeredAbility(new DamageTargetEffect(2), false);
        Target target = new TargetCreaturePermanent(filter2);
        ability.addTarget(target);
        Effect effect = new GainAbilityControlledEffect(ability, Duration.EndOfTurn, filter);
        effect.setText("Until end of turn, creatures you control gain \"When this creature dies, it deals 2 damage to target creature an opponent controls.\" ");
        this.getSpellAbility().addEffect(effect);

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.