Menu

Submission for Cackling Flames

59

Config

name=Cackling Flames
image=http://mtgimage.com/card/cackling%20flames.jpg
value=2.500
rarity=C
type=Instant
cost={3}{R}
timing=removal
requires_groovy_code
oracle=Cackling Flames deals 3 damage to target creature or player. Hellbent — Cackling Flames deals 5 damage to that creature or player instead if you have no cards in hand.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                this,
                "SN deals 3 damage to target creature or player\$. " +
                "SN deals 5 damage to that creature or player instead if you have no cards in hand."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                game.doAction(new MagicDealDamageAction(
                    event.getSource(),
                    it,
                    MagicCondition.HELLBENT.accept(event.getSource()) ? 5 : 3
                ))
            });
        }
    }
]
Pushed