Menu

Submission for Pit Spawn

70

Config

name=Pit Spawn
image=http://mtgimage.com/card/pit%20spawn.jpg
value=2.500
rarity=R
type=Creature
subtype=Demon
cost={4}{B}{B}{B}
pt=6/4
ability=First strike;\
        At the beginning of your upkeep, you may pay {B}{B}. If you don't, sacrifice SN.
timing=main
requires_groovy_code
oracle=First strike. At the beginning of your upkeep, sacrifice Pit Spawn unless you pay {B}{B}. Whenever Pit Spawn deals damage to a creature, exile that creature.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.isSource(permanent) && damage.isTargetCreature()) ?
                new MagicEvent(
                    permanent,
                    damage.getTarget(),
                    this,
                    "Exile RN."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processRefPermanent(game, {
                game.doAction(new MagicRemoveFromPlayAction(it,MagicLocationType.Exile));            });
        }
    }
]
Pushed