Menu

Submission for Active Volcano

85

Config

name=Active Volcano
image=http://mtgimage.com/card/active%20volcano.jpg
value=2.500
rarity=C
type=Instant
cost={R}
timing=removal
requires_groovy_code
oracle=Choose one — • Destroy target blue permanent. • Return target Island to its owner's hand.

Script

def EFFECT1 = MagicRuleEventAction.create("Destroy target blue permanent.");

def EFFECT2 = MagicRuleEventAction.create("Return target island to its owner's hand.");

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                new MagicOrChoice(
                    MagicTargetChoice.Negative("target blue permanent"),
                    MagicTargetChoice.Negative("target Island")
                ),
                this,
                "Choose one\$ - destroy target blue permanent; " +
                "or return target Island to its owner's hand."
            );
        }
        @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