Menu

Submission for Rushwood Legate

266

Config

name=Rushwood Legate
image=http://mtgimage.com/card/rushwood%20legate.jpg
value=2.500
rarity=U
type=Creature
subtype=Dryad
cost={2}{G}
pt=2/1
timing=main
requires_groovy_code
oracle=If an opponent controls an Island and you control a Forest, you may cast Rushwood Legate without paying its mana cost.

Script

def FOREST_AND_ISLAND_CONDITION = new MagicCondition() {
    public boolean accept(final MagicSource source) {
        return source.getController().getNrOfPermanents(MagicSubType.Forest) >= 1 && 
        source.getController().getOpponent().getNrOfPermanents(MagicSubType.Island) >= 1;
    }
};

[
     new MagicCardActivation(
        [FOREST_AND_ISLAND_CONDITION, MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Main),
        "NoCost"
    ) {

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