Menu

Submission for Stoic Rebuttal

46

Config

name=Stoic Rebuttal
image=http://mtgimage.com/card/stoic%20rebuttal.jpg
value=2.500
rarity=C
type=Instant
cost={1}{U}{U}
effect=Counter target spell.
timing=counter
requires_groovy_code
oracle=Metalcraft — Stoic Rebuttal costs {1} less to cast if you control three or more artifacts. Counter target spell.

Script

[
     new MagicCardActivation(
        [MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Main, true),
        "Cast"
    ) {
        @Override
        public void change(final MagicCardDefinition cdef) {
            cdef.setCardAct(this);
        }

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
        return MagicCondition.METALCRAFT_CONDITION.accept(source) ?
            [new MagicPayManaCostEvent(source,"{U}{U}")] :
            [new MagicPayManaCostEvent(source,"{1}{U}{U}")];
        }
    }
]
Pushed