Menu

Submission for Sprouting Phytohydra

95

Config

name=Sprouting Phytohydra
image=http://mtgimage.com/card/sprouting%20phytohydra.jpg
value=2.500
rarity=R
type=Creature
subtype=Plant,Hydra
cost={4}{G}
pt=0/2
ability=Defender
timing=main
requires_groovy_code
oracle=Defender. Whenever Sprouting Phytohydra is dealt damage, you may put a token that's a copy of Sprouting Phytohydra onto the battlefield.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.getTarget() == permanent) ?
                new MagicEvent(
                permanent,
                new MagicMayChoice(),
                this,
                "Put a token that's a copy of SN onto the battlefield?"
            ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPlayer player = event.getPlayer();
            final MagicCard card = MagicCard.createTokenCard(event.getPermanent(),player);        
            if (event.isYes()){
            game.doAction(new MagicPlayCardAction(card,player));
            }
        }
    }
]
Pushed