Menu

Submission for Hellfire

70

Config

name=Hellfire
image=http://mtgimage.com/card/hellfire.jpg
value=2.500
rarity=R
type=Sorcery
cost={2}{B}{B}{B}
timing=main
requires_groovy_code
oracle=Destroy all nonblack creatures. Hellfire deals X plus 3 damage to you, where X is the number of creatures that died this way.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Destroy all nonblack creatures." + "SN deals X+3 damage to PN, where X is the number of creatures that died this way."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
                final Collection<MagicPermanent> targets=
                    game.filterPermanents(MagicTargetFilterFactory.NONBLACK_CREATURE);
                final MagicDestroyAction destroy = new MagicDestroyAction(targets);
                game.doAction(destroy);
			game.doAction(new MagicDealDamageAction(event.getSource(),event.getPlayer(),destroy.getNumDestroyed() + 3));
        }
    }
]
Pushed