Package mage.abilities.common

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


                new BoostTargetEffect(-4,-4, Duration.EndOfTurn),
                new BoostTargetEffect(-1,-1, Duration.EndOfTurn),
                new LockedInCondition(new PermanentsOnTheBattlefieldCondition(filterBogbrewWitch)),
                "target creature an opponent controls gets -1/-1 until end of turn. That creature gets -4/-4 instead if you control a creature named Bogbrew Witch");
        Ability ability = new DiesTriggeredAbility(effect);
        ability.addTarget(new TargetCreaturePermanent(filterCreature));
        this.addAbility(ability);
    }

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


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

        // When Gang of Devils dies, it deals 3 damage divided as you choose among one, two, or three target creatures and/or players.
        Ability ability = new DiesTriggeredAbility(new DamageMultiEffect(3));
        ability.addTarget(new TargetCreatureOrPlayerAmount(3));
        this.addAbility(ability);
    }

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

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Mindeye Drake dies, target player puts the top five cards of his or her library into his or her graveyard.
        Ability ability = new DiesTriggeredAbility(new PutLibraryIntoGraveTargetEffect(5));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

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

        // When Rotcrown Ghoul dies, target player puts the top five cards of his or her library into his or her graveyard.
        Ability ability = new DiesTriggeredAbility(new PutLibraryIntoGraveTargetEffect(5));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // When Keiga, the Tide Star dies, gain control of target creature.
        Ability ability = new DiesTriggeredAbility(new GainControlTargetEffect(Duration.Custom));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        // When Pitchburn Devils dies, it deals 3 damage to target creature or player.
        DiesTriggeredAbility ability = new DiesTriggeredAbility(new DamageTargetEffect(3));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

        this.addAbility(DeathtouchAbility.getInstance());

        // When Bitterheart Witch dies, you may search your library for a Curse card, put it onto the battlefield attached to target player, then shuffle your library.
        Ability ability = new DiesTriggeredAbility(new BitterheartWitchEffect(), true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);

    }

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

        // Vastwood Hydra enters the battlefield with X +1/+1 counters on it.
        this.addAbility(new EntersBattlefieldAbility(new VastwoodHydraEffect()));
        // When Vastwood Hydra dies, you may distribute a number of +1/+1 counters equal to the number of +1/+1 counters on Vastwood Hydra among any number of creatures you control.
        Ability ability = new DiesTriggeredAbility(new VastwoodHydraDistributeEffect(), true);
        ability.addTarget(new TargetCreaturePermanentAmount(new CountersCount(CounterType.P1P1), filter));
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(3);

        // When Polluted Dead dies, destroy target land.
        Ability ability = new DiesTriggeredAbility(new DestroyTargetEffect());
        Target target = new TargetLandPermanent();
        ability.addTarget(target);
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(2);

        // When Driver of the Dead dies, return target creature card with converted mana cost 2 or less from your graveyard to the battlefield.
        Ability ability = new DiesTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), false);
        Target target = new TargetCardInYourGraveyard(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }

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