Menu

Submission for Hellkite Igniter

127

Config

name=Hellkite Igniter
image=http://mtgimage.com/card/hellkite%20igniter.jpg
value=2.500
rarity=R
type=Creature
subtype=Dragon
cost={5}{R}{R}
pt=5/5
ability=Flying; haste
timing=main
requires_groovy_code
oracle=Flying, haste. {1}{R}: Hellkite Igniter gets +X/+0 until end of turn, where X is the number of artifacts you control.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Pump"
    ) {
        @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,
                this,
                "SN gets +X/+0 until end of turn, where X is the number of Artifacts you control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
                final int X = event.getPlayer().getNrOfPermanents(MagicType.Artifact);
                game.doAction(new MagicChangeTurnPTAction(event.getPermanent(), +X, +0));
        }
    }
]
Pushed