Menu

Submission for Hesitation

33

Config

name=Hesitation
image=http://mtgimage.com/card/hesitation.jpg
value=2.500
rarity=U
type=Enchantment
cost={1}{U}
timing=enchantment
requires_groovy_code
oracle=When a player casts a spell, sacrifice Hesitation and counter that spell.

Script

[
    new MagicWhenOtherSpellIsCastTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
                new MagicEvent(
                    permanent,
                    cardOnStack,
                    this,
                    "Sacrifice SN and counter RN."
                );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
          event.processTargetCardOnStack(game, {         
	    game.doAction(new MagicSacrificeAction(event.getPermanent()));
            game.doAction(new MagicCounterItemOnStackAction(it));
	    });        }
    }
]
Pushed