Menu

Submission for Deepwood Legate

132

Config

name=Deepwood Legate
image=http://mtgimage.com/card/deepwood%20legate.jpg
value=2.500
rarity=U
type=Creature
subtype=Shade
cost={3}{B}
pt=1/1
ability={B}: SN gets +1/+1 until end of turn.
timing=main
requires_groovy_code
oracle=If an opponent controls a Forest and you control a Swamp, you may cast Deepwood Legate without paying its mana cost. {B}: Deepwood Legate gets +1/+1 until end of turn.

Script

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

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

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