Menu

Submission for Kyren Legate

197

Config

name=Kyren Legate
image=http://mtgimage.com/card/kyren%20legate.jpg
value=2.500
rarity=U
type=Creature
subtype=Goblin
cost={1}{R}
pt=1/1
ability=Haste
timing=main
requires_groovy_code
oracle=Haste. If an opponent controls a Plains and you control a Mountain, you may cast Kyren Legate without paying its mana cost.

Script

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

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

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