Examples of DealsCombatDamageToACreatureTriggeredAbility


Examples of mage.abilities.common.DealsCombatDamageToACreatureTriggeredAbility

                "When {this} enters the battlefield, if you didn't cast it from your hand, you lose the game"
        ));
        this.addWatcher(new CastFromHandWatcher());

        // Whenever Phage deals combat damage to a creature, destroy that creature. It can't be regenerated.
        this.addAbility(new DealsCombatDamageToACreatureTriggeredAbility(new DestroyTargetEffect(true), false, true));

        // Whenever Phage deals combat damage to a player, that player loses the game.
        this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new LoseGameTargetPlayerEffect(), false, true));
    }
View Full Code Here

Examples of mage.abilities.common.DealsCombatDamageToACreatureTriggeredAbility

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

        // Whenever Ohran Viper deals combat damage to a creature, destroy that creature at end of combat.
        this.addAbility(new DealsCombatDamageToACreatureTriggeredAbility(new OhranViperDestroyEffect(), false, true));
        // Whenever Ohran Viper deals combat damage to a player, you may draw a card.
        this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DrawCardSourceControllerEffect(1), false));
    }
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.