Menu

Submission for Maelstrom Djinn

39

Config

name=Maelstrom Djinn
image=http://mtgimage.com/card/maelstrom%20djinn.jpg
value=2.500
rarity=R
type=Creature
subtype=Djinn
cost={7}{U}
pt=5/6
ability=Flying;\
Morph {2}{U}
timing=main
requires_groovy_code
oracle=Flying. Morph {2}{U}. When Maelstrom Djinn is turned face up, put two time counters on it and it gains vanishing.

Script

def Vanishing = MagicAbility.getAbilityList("Vanishing 1");

[
    new MagicWhenTurnedFaceUpTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
            return new MagicEvent(
                permanent,
                this,
                "Put two time counters on SN and it gains vanishing."
            )
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.Time,2));
            game.doAction(new MagicGainAbilityAction(event.getPermanent(),Vanishing,MagicStatic.Forever))
        }
    }
]
Pushed