Menu

Submission for Simic Charm

195

Config

name=Simic Charm
image=http://mtgimage.com/card/simic%20charm.jpg
value=2.500
rarity=U
type=Instant
cost={G}{U}
timing=pump
requires_groovy_code
oracle=Choose one — • Target creature gets +3/+3 until end of turn. • Permanents you control gain hexproof until end of turn. • Return target creature to its owner's hand.

Script

def EFFECT1 = MagicRuleEventAction.create("Target creature gets +3/+3 until end of turn.");

def EFFECT2 = MagicRuleEventAction.create("Permanents you control gain hexproof until end of turn.");

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


[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                new MagicOrChoice(
                    MagicTargetChoice.POS_TARGET_CREATURE,
                    MagicTargetChoice.NONE,
                    MagicTargetChoice.TARGET_CREATURE
                ),
                this,
                "Choose one\$ - target creature gets +3/+3 until end of turn; " +
                "or permanents you control gain hexproof until end of turn; " +
                "or return target creature to its owner's hand.\$" 
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.executeModalEvent(game, EFFECT1, EFFECT2, EFFECT3);
        }
    }
]
Pushed