Menu

Submission for Flame Elemental

175

Comment

Adapted from Cinder Shade, including tap cost.

Config

name=Flame Elemental
image=http://mtgimage.com/card/flame%20elemental.jpg
value=2.500
rarity=U
type=Creature
subtype=Elemental
cost={2}{R}{R}
pt=3/2
timing=main
requires_groovy_code
oracle={R}, {T}, Sacrifice Flame Elemental: Flame Elemental deals damage equal to its power to target creature.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Damage"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
			new MagicTapEvent(source),
                new MagicPayManaCostEvent(source,"{R}"),
                new MagicSacrificeEvent(source)
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_CREATURE,
                new MagicDamageTargetPicker(source.getPower()),
                this,
                "SN deals damage equal to its power to target creature\$."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                final MagicPermanent source=event.getPermanent();
                final int amount=source.getPower();
                final MagicDamage damage=new MagicDamage(source,it,amount);
                game.doAction(new MagicDealDamageAction(damage));
            });
        }
    }
]
Pushed