Menu

Submission for Windscouter

53

Config

name=Windscouter
image=http://mtgimage.com/card/windscouter.jpg
value=2.500
rarity=U
type=Creature
subtype=Human,Scout
cost={3}{U}
pt=3/3
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. When Windscouter attacks or blocks, return it to its owner's hand at end of combat.

Script

[
    new MagicWhenSelfAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
            return new MagicEvent(
                permanent,
                this,
                "Return SN to its owner's hand at end of combat."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicAddTriggerAction(
                event.getPermanent(),
                MagicAtEndOfCombatTrigger.Return
            ))
        }
    },
    new MagicWhenSelfBlocksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
            return new MagicEvent(
                permanent,
                this,
                "Return SN to its owner's hand at end of combat."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicAddTriggerAction(
                event.getPermanent(),
                MagicAtEndOfCombatTrigger.Return
            ))
        }
    }
]
Pushed