Menu

Submission for Reckless Embermage

212

Config

name=Reckless Embermage
image=http://mtgimage.com/card/reckless%20embermage.jpg
value=2.500
rarity=R
type=Creature
subtype=Human,Wizard
cost={3}{R}
pt=2/2
timing=main
requires_groovy_code
oracle={1}{R}: Reckless Embermage deals 1 damage to target creature or player and 1 damage to itself.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Damage"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,"{1}{R}")
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                new MagicDamageTargetPicker(1),
                this,
                "SN deals 1 damage to target creature\$ or player\$ and 1 damage to itself."
            );
        }

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