magarena/release/Magarena/scripts/Halt_Order.groovy

23 lines
857 B
Groovy
Raw Normal View History

2013-05-17 22:14:56 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_ARTIFACT_SPELL,
this,
"Counter target artifact spell\$. Draw a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetCardOnStack(game,new MagicCardOnStackAction() {
public void doAction(final MagicCardOnStack targetSpell) {
game.doAction(new MagicCounterItemOnStackAction(targetSpell));
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
});
}
}
]