Menu

Submission for Stratadon

135

Config

name=Stratadon
image=http://mtgimage.com/card/stratadon.jpg
value=2.500
rarity=U
type=Artifact,Creature
subtype=Beast
cost={10}
pt=5/5
ability=Trample
timing=main
requires_groovy_code
oracle=Domain — Stratadon costs {1} less to cast for each basic land type among lands you control. Trample

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) {
            final int n = source.getController().getDomain();
            final int cost= Math.max(0,5-n)
            return cost==0 ?
                [new MagicPayManaCostEvent(source,"{5}")]:
                [new MagicPayManaCostEvent(source,"{"+cost.toString()+"}{5}")];
        }
    }
]
Pushed