Menu

Submission for Ainok Guide

121

Config

name=Ainok Guide
image=http://mtgimage.com/card/ainok%20guide.jpg
value=2.500
rarity=C
type=Creature
subtype=Hound,Scout
cost={1}{G}
pt=1/1
timing=main
requires_groovy_code
oracle=When Ainok Guide enters the battlefield, choose one — • Put a +1/+1 counter on Ainok Guide. • Search your library for a basic land card, reveal it, then shuffle your library and put that card on top of it.

Script

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

def EFFECT2 = MagicRuleEventAction.create("Search your library for a basic land card, reveal it, then shuffle your library and put that card on top of it.");

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicOrChoice(
                    MagicTargetChoice.NONE,
                    MagicTargetChoice.NONE
                ),
                payedCost,
                this,
                "Choose one\$ - put a +1/+1 counter on SN; or search your library for a basic land card, reveal it, then shuffle your library and put that card on top of it."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.executeModalEvent(game, EFFECT1, EFFECT2);
        }
    }
]
Pushed