Menu

Submission for Hurly-Burly

165

Config

name=Hurly-Burly
image=http://mtgimage.com/card/hurly-burly.jpg
value=2.500
rarity=C
type=Sorcery
cost={1}{R}
timing=main
requires_groovy_code
oracle=Choose one — • Hurly-Burly deals 1 damage to each creature without flying. • Hurly-Burly deals 1 damage to each creature with flying.

Script

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

def EFFECT2 = MagicRuleEventAction.create("SN deals 1 damage to each creature with flying.");

[
    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 1 damage to each creature without flying; " +
                "or SN deals 1 damage to each creature with flying."
            );
        }
        @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