Menu

Submission for Orim's Touch

23

Config

name=Orim's Touch
image=http://mtgimage.com/card/orim%27s%20touch.jpg
value=2.500
rarity=C
type=Instant
cost={W}
ability=Kicker {1}
timing=pump
requires_groovy_code
oracle=Kicker {1}. Prevent the next 2 damage that would be dealt to target creature or player this turn. If Orim's Touch was kicked, prevent the next 4 damage that would be dealt to that creature or player this turn instead.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_CREATURE_OR_PLAYER,
                MagicPreventTargetPicker.create(),
                this,
                "Prevent the next 2 damage that would be dealt to target creature or player\$ this turn. "+
                "If SN was kicked, prevent the next 4 damage instead."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                final int amount = event.isKicked() ? 4 : 2;
                game.doAction(new MagicPreventDamageAction(it,amount));
            });
        }
    }
]
Pushed