Menu

Submission for Anurid Brushhopper

137

Config

name=Anurid Brushhopper
image=http://mtgimage.com/card/anurid%20brushhopper.jpg
value=2.500
rarity=R
type=Creature
subtype=Frog,Beast
cost={1}{G}{W}
pt=3/4
timing=main
requires_groovy_code
oracle=Discard two cards: Exile Anurid Brushhopper. Return it to the battlefield under its owner's control at the beginning of the next end step.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal,1),
        "Exile"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicDiscardEvent(source, 2)];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "Exile SN. Return it to the battlefield " +
                "under your control at the beginning of the next end step."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicExileUntilEndOfTurnAction(event.getPermanent()));
        }
    }
]
Pushed