Menu

Submission for Marsh Viper

177

Config

name=Marsh Viper
image=http://mtgimage.com/card/marsh%20viper.jpg
value=2.500
rarity=C
type=Creature
subtype=Snake
cost={3}{G}
pt=1/2
timing=main
requires_groovy_code
oracle=Whenever Marsh Viper deals damage to a player, that player gets two poison counters.

Script

[
    new MagicWhenSelfCombatDamagePlayerTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return new MagicEvent(
                permanent,
                damage.getTargetPlayer(),
                    this,
                    "PN gets two poison counters."
                );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangePoisonAction(event.getPlayer(),2));
        }
    }
]
Pushed