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:
Alex Vasile 2022-02-04 16:18:52 -05:00 committed by GitHub
parent d3d25d9e3d
commit 50a78526dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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;
}

View file

@ -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;