Menu

Submission for Dismantling Blow

14

Config

name=Dismantling Blow
image=http://mtgimage.com/card/dismantling%20blow.jpg
value=2.500
rarity=C
type=Instant
cost={2}{W}
ability=Kicker {2}{U}
timing=removal
requires_groovy_code
oracle=Kicker {2}{U}. Destroy target artifact or enchantment. If Dismantling Blow was kicked, draw two cards.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_ARTIFACT_OR_ENCHANTMENT,
                MagicDestroyTargetPicker.Destroy,
                this,
                "Destroy target artifact or enchantment\$." +
                "If SN was kicked, draw two cards."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicDestroyAction(it));
                if (!event.isKicked()) {
                    return;
                }
                game.doAction(new MagicDrawAction(event.getPlayer(),2));
            });
        }
    }
]
Pushed