Menu

Submission for Netcaster Spider

188

Config

name=Netcaster Spider
image=http://mtgimage.com/card/netcaster%20spider.jpg
value=2.500
rarity=C
type=Creature
subtype=Spider
cost={2}{G}
pt=2/3
ability=Reach
timing=main
requires_groovy_code
oracle=Reach. Whenever Netcaster Spider blocks a creature with flying, Netcaster Spider gets +2/+0 until end of turn.

Script

[
    new MagicWhenBlocksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
            final MagicPermanent blocked=permanent.getBlockedCreature();
            return (permanent==blocker &&
                    blocked.isValid() &&
                    blocked.hasAbility(MagicAbility.Flying)) ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN gets +2/+0 until end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),2,0));
        }
    }
]
Pushed