Menu

Submission for Slagstorm

75

Config

name=Slagstorm
image=http://mtgimage.com/card/slagstorm.jpg
value=2.500
rarity=R
type=Sorcery
cost={1}{R}{R}
timing=main
requires_groovy_code
oracle=Choose one — • Slagstorm deals 3 damage to each creature. • Slagstorm deals 3 damage to each player.

Script

def EFFECT1 = MagicRuleEventAction.create("SN deals 3 damage to each creature.");

def EFFECT2 = MagicRuleEventAction.create("SN deals 3 damage to each player.");

[
    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\$ - SN deals 3 damage to each creature; " +
                "or SN deals 3 damage to each player."
            );
        }
        @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