Menu

Submission for Gush

72

Config

name=Gush
image=http://mtgimage.com/card/gush.jpg
value=2.500
rarity=C
type=Instant
cost={4}{U}
effect=Draw two cards.
timing=draw
requires_groovy_code
oracle=You may return two Islands you control to their owner's hand rather than pay Gush's mana cost. Draw two cards.

Script

def TWO_ISLANDS_CONDITION = new MagicCondition() {
    public boolean accept(final MagicSource source) {
        return source.getController().getNrOfPermanents(MagicSubType.Island) >= 2;
    }
};

def choice = new MagicTargetChoice("an Island you control");
[
     new MagicCardActivation(
        [TWO_ISLANDS_CONDITION, MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Draw),
        "NoCost"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
            return [ 
            new MagicBounceChosenPermanentEvent(source,choice),
            new MagicBounceChosenPermanentEvent(source,choice)
            ];
        }
    }
]
Pushed