Menu

Submission for Aether Shockwave

1

Config

name=Æther Shockwave
image=http://mtgimage.com/card/aether%20shockwave.jpg
value=2.500
rarity=U
type=Instant
cost={3}{W}
timing=tapping
requires_groovy_code
oracle=Choose one — • Tap all Spirits. • Tap all non-Spirit creatures.

Script

def EFFECT1 = MagicRuleEventAction.create("Tap all Spirits.");

def EFFECT2 = MagicRuleEventAction.create("Tap all non-Spirit creatures.");

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                new MagicOrChoice(
                    MagicChoice.NONE,
                    MagicChoice.NONE
                ),
                this,
                "Choose one\$ - tap all Spirits; " +
                "or tap all non-Spirit creatures."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isMode(1)) {
                game.addEvent(EFFECT1.getEvent(event.getSource()));

            } else if (event.isMode(2)) {
                game.addEvent(EFFECT2.getEvent(event.getSource()));
            }
        }
    }
]
Pushed