23 lines
896 B
Groovy
23 lines
896 B
Groovy
|
[
|
||
|
new MagicSpellCardEvent() {
|
||
|
@Override
|
||
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||
|
return new MagicEvent(
|
||
|
cardOnStack,
|
||
|
MagicTargetChoice.NEG_TARGET_NONCREATURE_SPELL,
|
||
|
this,
|
||
|
"Counter target noncreature spell\$. Its controller loses 2 life."
|
||
|
);
|
||
|
}
|
||
|
@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 MagicChangeLifeAction(targetSpell.getController(),-2));
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
]
|