Menu

Submission for Treva's Charm

61

Config

name=Treva's Charm
image=http://mtgimage.com/card/treva%27s%20charm.jpg
value=2.500
rarity=U
type=Instant
cost={G}{W}{U}
timing=removal
requires_groovy_code
oracle=Choose one — • Destroy target enchantment. • Exile target attacking creature. • Draw a card, then discard a card.

Script

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

def EFFECT2 = MagicRuleEventAction.create("Exile target attacking creature.");

def EFFECT3 = MagicRuleEventAction.create("Draw a card, then discard a card.");


[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                new MagicOrChoice(
                    MagicTargetChoice.NEG_TARGET_ENCHANTMENT,
                    MagicTargetChoice.NEG_TARGET_ATTACKING_CREATURE,
                    MagicTargetChoice.NONE
                ),
                this,
                "Choose one\$ - destroy target enchantment; " +
                "or exile target attacking creature; " +
                "or draw a card, then discard a card.\$" 
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.executeModalEvent(game, EFFECT1, EFFECT2, EFFECT3);
        }
    }
]
Pushed