mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed how Void Mirror, Reinterpret, and Bazaar Of Wonders counter spells (#8638)
* Changed how Void Mirror, Reinterpret, and Bazaar Of Wonders counter spells so that they do not counter spells which cannot be countered. * Fixed typo
This commit is contained in:
parent
d3d25d9e3d
commit
50a78526dc
3 changed files with 3 additions and 5 deletions
|
@ -91,8 +91,7 @@ class BazaarOfWondersEffect extends OneShotEffect {
|
|||
continue;
|
||||
}
|
||||
if (player.getGraveyard().count(filter2, game) > 0) {
|
||||
spell.counter(source, game);
|
||||
return true;
|
||||
return game.getStack().counter(spell.getId(), source, game);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -60,7 +60,7 @@ class ReinterpretEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
int manaValue = spell.getManaValue();
|
||||
spell.counter(source, game);
|
||||
game.getStack().counter(spell.getId(), source, game);
|
||||
new CastWithoutPayingManaCostEffect(manaValue).apply(game, source);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package mage.cards.v;
|
||||
|
||||
import mage.MageObjectReference;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastAllTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
|
@ -73,7 +72,7 @@ class VoidMirrorEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Spell spell = (Spell) getValue("spellCast");
|
||||
if (spell != null) {
|
||||
spell.counter(source, game);
|
||||
game.getStack().counter(spell.getId(), source, game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue