Package mage.abilities.common

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


        // When Myr Retriever dies, return another target artifact card from your graveyard to your hand.
        Effect effect = new ReturnFromGraveyardToHandTargetEffect();
        effect.setText("return another target artifact card from your graveyard to your hand");
        Ability ability = new DiesTriggeredAbility(effect);
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);
    }

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


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

        // When Elder Cathar dies, put a +1/+1 counter on target creature you control. If that creature is a Human, put two +1/+1 counters on it instead.
        Ability ability = new DiesTriggeredAbility(new ElderCatharAddCountersTargetEffect(), false);
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
    }

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

        // Scuttling Doom Engine can't be blocked by creatures with power 2 or less.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield)));
        // When Scuttling Doom Engine dies, it deals 6 damage to target opponnent
        Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(6), false);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }

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

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

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

        this.color.setRed(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        // When Mudbutton Torchrunner dies, it deals 3 damage to target creature or player.
        Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(3), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

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

        // When Infectious Host dies, target player loses 2 life.
        Ability ability = new DiesTriggeredAbility(new LoseLifeTargetEffect(2), false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

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

        // When Carrion Thrash dies, you may pay {2}. If you do, return another target creature card from your graveyard to your hand.
        DiesTriggeredAbility ability = new DiesTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new GenericManaCost(2)), false);
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);
    }

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

        // When you cycle Esper Sojourners or it dies, you may tap or untap target permanent.
        Ability ability1 = new CycleTriggeredAbility(new MayTapOrUntapTargetEffect());
        Ability ability2 = new DiesTriggeredAbility(new MayTapOrUntapTargetEffect());
        ability1.addTarget(new TargetPermanent());
        ability2.addTarget(new TargetPermanent());
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{U}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{U}")));
View Full Code Here

        this.subtype.add("Goblin");
        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        Ability ability = new DiesTriggeredAbility(new BoostTargetEffect(-1, -1, Duration.EndOfTurn), false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        // {2}{G}: Loathsome Catoblepas must be blocked this turn if able.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new MustBeBlockedByAtLeastOneSourceEffect(), new ManaCostsImpl("{2}{G}")));
        // When Loathsome Catoblepas dies, target creature an opponent controls gets -3/-3 until end of turn.
        Ability ability = new DiesTriggeredAbility(new BoostTargetEffect(-3,-3, Duration.EndOfTurn), false);
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);

    }

    public LoathsomeCatoblepas(final LoathsomeCatoblepas card) {
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.