Menu

Submission for Avatar of Fury

110

Config

name=Avatar of Fury
image=http://mtgimage.com/card/avatar%20of%20fury.jpg
value=2.500
rarity=R
type=Creature
subtype=Avatar
cost={6}{R}{R}
pt=6/6
ability=Flying;\
{R}: SN gets +1/+0 until end of turn.
timing=main
requires_groovy_code
oracle=If an opponent controls seven or more lands, Avatar of Fury costs {6} less to cast. Flying. {R}: Avatar of Fury gets +1/+0 until end of turn.

Script

def SEVEN_LANDS_CONDITION = new MagicCondition() {
    public boolean accept(final MagicSource source) {
        return source.getOpponent().getNrOfPermanents(MagicType.Land) >= 7;
    }
};

[
     new MagicCardActivation(
        [SEVEN_LANDS_CONDITION, MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Main, true),
        "-Cost"
    ) {

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