Menu

Submission for Mana Vapors

38

Config

name=Mana Vapors
image=http://magiccards.info/scans/en/pr/38.jpg
value=2.500
rarity=U
type=Sorcery
cost={1}{U}
timing=main
requires_groovy_code
oracle=Lands target player controls don't untap during his or her next untap step.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                NEG_TARGET_PLAYER,
                this,
                "Lands target player\$ controls don't untap during his or her next untap step."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                final Collection<MagicPermanent> targets = game.filterPermanents(it,LAND_YOU_CONTROL);
                for (final MagicPermanent land : targets) {
                    game.doAction(MagicChangeStateAction.Set(
                        land,
                        MagicPermanentState.DoesNotUntapDuringNext
                    ));
                }
            });
        }
    }
]
Pushed