Menu

Submission for Walking Dream

49

Config

name=Walking Dream
image=http://mtgimage.com/card/walking%20dream.jpg
value=2.500
rarity=U
type=Creature
subtype=Illusion
cost={3}{U}
pt=3/3
ability=SN can't be blocked.
timing=main
requires_groovy_code
oracle=Walking Dream can't be blocked. Walking Dream doesn't untap during your untap step if an opponent controls two or more creatures.

Script

[
    new MagicAtUntapTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer untapPlayer) {
            return permanent.isController(untapPlayer) && untapPlayer.getOpponent().getNrOfPermanents(MagicType.Creature) >= 2 ?
                new MagicEvent(
                    permanent,
                    this,
                    "If an opponent controls 2 or more creatures, SN doesn't untap."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPlayer().getOpponent().getNrOfPermanents(MagicType.Creature) >= 2) {
                game.doAction(MagicChangeStateAction.Set(
                    event.getPermanent(),
                    MagicPermanentState.DoesNotUntapDuringNext
                ));
            }
        }
    }
]
Pushed