Menu

Submission for Fever Charm

202

Config

name=Fever Charm
image=http://mtgimage.com/card/fever%20charm.jpg
value=2.500
rarity=C
type=Instant
cost={R}
timing=pump
requires_groovy_code
oracle=Choose one — • Target creature gains haste until end of turn. • Target creature gets +2/+0 until end of turn. • Fever Charm deals 3 damage to target Wizard creature.

Script

def EFFECT1 = MagicRuleEventAction.create("Target creature gains haste until end of turn.");

def EFFECT2 = MagicRuleEventAction.create("Target creature gets +2/+0 until end of turn.");

def EFFECT3 = MagicRuleEventAction.create("SN deals 3 damage to target Wizard creature.");

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                new MagicOrChoice(
                    MagicTargetChoice.POS_TARGET_CREATURE,
                    MagicTargetChoice.POS_TARGET_CREATURE,
                    MagicTargetChoice.Negative("target Wizard creature")
                ),
                this,
                "Choose one\$ - target creature gains haste until end of turn; " +
                "or target creature gets +2/+0 until end of turn; " +
                "or SN deals 3 damage to target Wizard creature." 
            );
        }
        @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()));
            } else if (event.isMode(3)) {
                game.addEvent(EFFECT3.getEvent(event.getSource()));
            }
        }
    }
]
Pushed