Menu

Submission for Cho-Arrim Legate

10

Config

name=Cho-Arrim Legate
image=http://mtgimage.com/card/cho-arrim%20legate.jpg
value=2.500
rarity=U
type=Creature
subtype=Human,Soldier
cost={2}{W}
pt=1/2
ability=Protection from black
timing=main
requires_groovy_code
oracle=Protection from black. If an opponent controls a Swamp and you control a Plains, you may cast Cho-Arrim Legate without paying its mana cost.

Script

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

[
     new MagicCardActivation(
        [PLAINS_AND_SWAMP_CONDITION, MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Pump),
        "NoCost"
    ) {

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