Menu

Submission for Collateral Damage

95

Config

name=Collateral Damage
image=http://mtgimage.com/card/collateral%20damage.jpg
value=2.500
rarity=C
type=Instant
cost={R}
ability=As an additional cost to cast SN, sacrifice a creature.
timing=removal
requires_groovy_code
oracle=As an additional cost to cast Collateral Damage, sacrifice a creature. Collateral Damage deals 3 damage to target creature or player.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                new MagicDamageTargetPicker(3),
                this,
                "SN deals 3 damage to target creature or player\$."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                final MagicDamage damage = new MagicDamage(event.getSource(),it,3);
                game.doAction(new MagicDealDamageAction(damage));
            });
        }
    }
]
Pushed