2013-02-20 06:14:32 -08:00
|
|
|
[
|
|
|
|
new MagicCardActivation(
|
|
|
|
[
|
2013-02-26 21:18:13 -08:00
|
|
|
MagicConditionFactory.ManaCost("{1}{U}{U}{R}")
|
2013-02-20 06:14:32 -08:00
|
|
|
],
|
|
|
|
new MagicActivationHints(MagicTiming.Tapping,true),
|
|
|
|
"Overload"
|
|
|
|
) {
|
|
|
|
public MagicEvent[] getCostEvent(final MagicCard source) {
|
|
|
|
return [
|
2013-05-21 19:54:06 -07:00
|
|
|
new MagicPayManaCostEvent(source,"{1}{U}{U}{R}")
|
2013-02-20 06:14:32 -08:00
|
|
|
];
|
|
|
|
}
|
|
|
|
@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,
|
2013-03-22 22:00:53 -07:00
|
|
|
final MagicEvent event) {
|
2013-02-20 06:14:32 -08:00
|
|
|
final Collection<MagicItemOnStack> targets=
|
|
|
|
game.filterItemOnStack(event.getPlayer(),MagicTargetFilter.TARGET_SPELL_YOU_DONT_CONTROL);
|
|
|
|
for (final MagicItemOnStack targetSpell : targets) {
|
|
|
|
game.doAction(new MagicCounterItemOnStackAction(targetSpell));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|