Menu

Submission for Vertigo Spawn

125

Comment

Adapted from Wall of Frost

Config

name=Vertigo Spawn
image=http://mtgimage.com/card/vertigo%20spawn.jpg
value=2.500
rarity=U
type=Creature
subtype=Illusion
cost={1}{U}
pt=0/3
ability=Defender
timing=main
requires_groovy_code
oracle=Defender. Whenever Vertigo Spawn blocks a creature, tap that creature. That creature doesn't untap during its controller's next untap step.

Script

[
    new MagicWhenBlocksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
            final MagicPermanent blocked=permanent.getBlockedCreature();
            return (permanent==blocker && blocked.isValid()) ?
                new MagicEvent(
                    permanent,
                    blocked,
                    this,
                    "Tap RN. It doesn't untap during its controller's next untap step."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
	    game.doAction(new MagicTapAction(event.getRefPermanent()));
            game.doAction(MagicChangeStateAction.Set(
                event.getRefPermanent(),
                MagicPermanentState.DoesNotUntapDuringNext
            ));
        }
    }
]
Pushed