38 lines
1.1 KiB
Groovy
38 lines
1.1 KiB
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[
|
|
MagicCondition.CAN_TAP_CONDITION,
|
|
MagicConditionFactory.ManaCost("{2}{U}{U}")
|
|
],
|
|
new MagicActivationHints(MagicTiming.Counter),
|
|
"Counter"
|
|
) {
|
|
|
|
@Override
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
return [
|
|
new MagicPayManaCostTapEvent(source,"{2}{U}{U}")
|
|
];
|
|
}
|
|
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
MagicTargetChoice.NEG_TARGET_SPELL,
|
|
this,
|
|
"Counter target spell\$."
|
|
);
|
|
}
|
|
|
|
@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));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|