Menu

Submission for Avatar of Will

30

Config

name=Avatar of Will
image=http://mtgimage.com/card/avatar%20of%20will.jpg
value=2.500
rarity=R
type=Creature
subtype=Avatar
cost={6}{U}{U}
pt=5/6
ability=Flying
timing=main
requires_groovy_code
oracle=If an opponent has no cards in hand, Avatar of Will costs {6} less to cast. Flying

Script

def NO_CARDS_IN_HAND_CONDITION = new MagicCondition() {
    public boolean accept(final MagicSource source) {
        return source.getOpponent().getHandSize() == 0;
    }
};

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

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