Menu

Submission for Assert Authority

30

Config

name=Assert Authority
image=http://mtgimage.com/card/assert%20authority.jpg
value=2.500
rarity=U
type=Instant
cost={5}{U}{U}
effect=Affinity for artifacts
timing=counter
requires_groovy_code
oracle=Affinity for artifacts. Counter target spell. If that spell is countered this way, exile it instead of putting it into its owner's graveyard.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_SPELL,
                this,
                "Counter target spell\$. " +
                "If that spell is countered this way, exile it instead of putting it into its owner's graveyard."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetCardOnStack(game, {
                game.doAction(new MagicCounterItemOnStackAction(it, MagicLocationType.Exile));
            });
        }
    }
]
Pushed