Menu

Submission for Sultai Charm

204

Config

name=Sultai Charm
image=http://mtgimage.com/card/sultai%20charm.jpg
value=2.500
rarity=U
type=Instant
cost={B}{G}{U}
timing=removal
requires_groovy_code
oracle=Choose one — • Destroy target monocolored creature. • Destroy target artifact or enchantment. • Draw two cards, then discard a card.

Script

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

def EFFECT2 = MagicRuleEventAction.create("Destroy target artifact or enchantment.");

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


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