Menu

Submission for Ghitu Fire-Eater

184

Config

name=Ghitu Fire-Eater
image=http://mtgimage.com/card/ghitu%20fire-eater.jpg
value=2.500
rarity=U
type=Creature
subtype=Human,Nomad
cost={2}{R}
pt=2/2
timing=main
requires_groovy_code
oracle={T}, Sacrifice Ghitu Fire-Eater: Ghitu Fire-Eater deals damage equal to its power to target creature or player.

Script

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

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicTapEvent(source),
                new MagicSacrificeEvent(source)
            ];
        }

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

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