Menu

Submission for Final Revels

113

Config

name=Final Revels
image=http://mtgimage.com/card/final%20revels.jpg
value=2.500
rarity=U
type=Sorcery
cost={4}{B}
timing=removal
requires_groovy_code
oracle=Choose one — • All creatures get +2/+0 until end of turn. • All creatures get -0/-2 until end of turn.

Script

def EFFECT1 = MagicRuleEventAction.create("All creatures get +2/+0 until end of turn.");

def EFFECT2 = MagicRuleEventAction.create("All creatures get -0/-2 until end of turn.");

[
    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\$ - all creatures get +2/+0 until end of turn; " +
                "or all creatures get -0/-2 until end of turn."
            );
        }
        @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