Menu

Submission for Aven Surveyor

31

Config

name=Aven Surveyor
image=http://mtgimage.com/card/aven%20surveyor.jpg
value=2.500
rarity=C
type=Creature
subtype=Bird,Scout
cost={3}{U}{U}
pt=2/2
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. When Aven Surveyor enters the battlefield, choose one — • Put a +1/+1 counter on Aven Surveyor. • Return target creature to its owner's hand.

Script

def EFFECT1 = MagicRuleEventAction.create("Put a +1/+1 counter on SN.");

def EFFECT2 = MagicRuleEventAction.create("Return target creature to its owner's hand.");

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicOrChoice(
                    MagicTargetChoice.NONE,
                    MagicTargetChoice.TARGET_CREATURE
                ),
                payedCost,
                this,
                "Choose one\$ - put a +1/+1 counter on SN; or return target creature to its owner's hand."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.executeModalEvent(game, EFFECT1, EFFECT2);
        }
    }
]
Pushed