Fix various counterspell effects not respecting replacement effects

This commit is contained in:
Alex W. Jackson 2022-04-08 02:00:26 -04:00
parent a48dedcd76
commit 5f4de26044
4 changed files with 4 additions and 4 deletions

View file

@ -59,7 +59,7 @@ class AnOfferYouCantRefuseEffect extends OneShotEffect {
if (spell == null) { if (spell == null) {
return false; return false;
} }
spell.counter(source, game); game.getStack().counter(spell.getId(), source, game);;
new TreasureToken().putOntoBattlefield(2, game, source, spell.getControllerId()); new TreasureToken().putOntoBattlefield(2, game, source, spell.getControllerId());
return true; return true;
} }

View file

@ -85,7 +85,7 @@ class JinGitaxiasProgressTyrantEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Spell spell = (Spell) getValue("spellCast"); Spell spell = (Spell) getValue("spellCast");
if (spell != null) { if (spell != null) {
spell.counter(source, game); game.getStack().counter(spell.getId(), source, game);;
} }
return true; return true;
} }

View file

@ -63,7 +63,7 @@ class KindredDenialEffect extends OneShotEffect {
return false; return false;
} }
int manaValue = spell.getManaValue(); int manaValue = spell.getManaValue();
spell.counter(source, game); game.getStack().counter(spell.getId(), source, game);;
FilterCard filter = new FilterCard(); FilterCard filter = new FilterCard();
filter.add(new ManaValuePredicate(ComparisonType.EQUAL_TO, manaValue)); filter.add(new ManaValuePredicate(ComparisonType.EQUAL_TO, manaValue));
player.seekCard(filter, source, game); player.seekCard(filter, source, game);

View file

@ -65,7 +65,7 @@ class ReinterpretEffect extends OneShotEffect {
return false; return false;
} }
int manaValue = spell.getManaValue(); int manaValue = spell.getManaValue();
spell.counter(source, game); game.getStack().counter(spell.getId(), source, game);;
FilterCard filter = new FilterCard(); FilterCard filter = new FilterCard();
filter.add(new ManaValuePredicate( filter.add(new ManaValuePredicate(
ComparisonType.FEWER_THAN, manaValue + 1 ComparisonType.FEWER_THAN, manaValue + 1