Package mage.abilities.common

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


        // Bushido 1
        this.addAbility(new BushidoAbility(1));
        // Whenever a creature an opponent controls dies, you may cast target instant card from your graveyard. If that card would be put into a graveyard this turn, exile it instead.
        Ability ability = new DiesCreatureTriggeredAbility(new ToshiroUmezawaEffect(), true, filter);
        ability.addTarget(new TargetCardInYourGraveyard(1,1, filterInstant));
        this.addAbility(ability);

    }

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


        this.expansionSetCode = "SHM";
        this.color.setBlack(true);

        Effect effect = new BlowflyInfestationEffect();
        TriggeredAbility triggeredAbility = new DiesCreatureTriggeredAbility(effect, false, false, true);
        triggeredAbility.addTarget(new TargetCreaturePermanent());
        Condition condition = new BlowflyInfestationCondition();
        this.addAbility(new ConditionalTriggeredAbility(triggeredAbility, condition, rule));

    }
View Full Code Here

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

        // Whenever another creature dies, Rage Thrower deals 2 damage to target player.
        DiesCreatureTriggeredAbility ability = new DiesCreatureTriggeredAbility(new DamageTargetEffect(2), false, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever another creature leaves the battlefield, you may have target player put the top two cards of his or her library into his or her graveyard.
        Ability ability = new DiesCreatureTriggeredAbility(new PutLibraryIntoGraveTargetEffect(2), true, true, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
        // Unearth {2}{B}
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{B}")));
    }
View Full Code Here

        // Haste
        this.addAbility(HasteAbility.getInstance());
        // Whenever another creature you control dies, it deals damage equal to its power to target player.
        Ability ability = new DiesCreatureTriggeredAbility(new StalkingVengeanceDamageEffect(), false, filter, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        this.color.setRed(true);

        // Whenever another Goblin you control dies, you may have Boggart Shenanigans deal 1 damage to target player.
        Ability ability = new DiesCreatureTriggeredAbility(new DamageTargetEffect(1), true, filter, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        this.color.setRed(true);

        // Whenever a creature dies, you may have Vicious Shadows deal damage to target player equal to the number of cards in that player's hand.
        Ability ability = new DiesCreatureTriggeredAbility(new DamageTargetEffect(new TargetPlayerCardsInHandCount()), true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

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

        // Whenever another creature dies, you may have Hissing Iguanar deal 1 damage to target player.
        DiesCreatureTriggeredAbility ability = new DiesCreatureTriggeredAbility(new DamageTargetEffect(1), true, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

    public HissingIguanar(final HissingIguanar 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.