27 lines
988 B
Groovy
27 lines
988 B
Groovy
[
|
|
new MagicOverloadActivation(MagicTiming.Counter) {
|
|
@Override
|
|
public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
|
|
return [
|
|
new MagicPayManaCostEvent(source,"{1}{U}{U}{R}")
|
|
];
|
|
}
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
this,
|
|
"Counter each spell you don't control."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final Collection<MagicItemOnStack> targets=
|
|
game.filterItemOnStack(event.getPlayer(),MagicTargetFilter.TARGET_SPELL_YOU_DONT_CONTROL);
|
|
for (final MagicItemOnStack targetSpell : targets) {
|
|
game.doAction(new MagicCounterItemOnStackAction(targetSpell));
|
|
}
|
|
}
|
|
}
|
|
]
|