Menu

Submission for Spark Mage

222

Config

name=Spark Mage
image=http://mtgimage.com/card/spark%20mage.jpg
value=2.500
rarity=U
type=Creature
subtype=Dwarf,Wizard
cost={R}
pt=1/1
timing=main
requires_groovy_code
oracle=Whenever Spark Mage deals combat damage to a player, you may have Spark Mage deal 1 damage to target creature that player controls.

Script

[
    new MagicWhenSelfCombatDamagePlayerTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice(MagicTargetChoice.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS),
                new MagicDamageTargetPicker(1),
                this,
                "PN may\$ have SN deal 1 damage to target creature\$ your opponent controls."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTargetPermanent(game, {
                    final MagicDamage damage=new MagicDamage(event.getSource(),it,1);
                    game.doAction(new MagicDealDamageAction(damage));
                });
            }
        }
    }
]
Pushed