From 5f4de260440a8174a3737cf2c654ac241ed27e39 Mon Sep 17 00:00:00 2001 From: "Alex W. Jackson" Date: Fri, 8 Apr 2022 02:00:26 -0400 Subject: [PATCH] Fix various counterspell effects not respecting replacement effects --- Mage.Sets/src/mage/cards/a/AnOfferYouCantRefuse.java | 2 +- Mage.Sets/src/mage/cards/j/JinGitaxiasProgressTyrant.java | 2 +- Mage.Sets/src/mage/cards/k/KindredDenial.java | 2 +- Mage.Sets/src/mage/cards/r/Reinterpret.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/AnOfferYouCantRefuse.java b/Mage.Sets/src/mage/cards/a/AnOfferYouCantRefuse.java index d9e5f8a0a8..37ee35918e 100644 --- a/Mage.Sets/src/mage/cards/a/AnOfferYouCantRefuse.java +++ b/Mage.Sets/src/mage/cards/a/AnOfferYouCantRefuse.java @@ -59,7 +59,7 @@ class AnOfferYouCantRefuseEffect extends OneShotEffect { if (spell == null) { return false; } - spell.counter(source, game); + game.getStack().counter(spell.getId(), source, game);; new TreasureToken().putOntoBattlefield(2, game, source, spell.getControllerId()); return true; } diff --git a/Mage.Sets/src/mage/cards/j/JinGitaxiasProgressTyrant.java b/Mage.Sets/src/mage/cards/j/JinGitaxiasProgressTyrant.java index 650efcdcbd..a1bf9b4bd3 100644 --- a/Mage.Sets/src/mage/cards/j/JinGitaxiasProgressTyrant.java +++ b/Mage.Sets/src/mage/cards/j/JinGitaxiasProgressTyrant.java @@ -85,7 +85,7 @@ class JinGitaxiasProgressTyrantEffect 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; } diff --git a/Mage.Sets/src/mage/cards/k/KindredDenial.java b/Mage.Sets/src/mage/cards/k/KindredDenial.java index 4090b8773d..d98ff7fde6 100644 --- a/Mage.Sets/src/mage/cards/k/KindredDenial.java +++ b/Mage.Sets/src/mage/cards/k/KindredDenial.java @@ -63,7 +63,7 @@ class KindredDenialEffect extends OneShotEffect { return false; } int manaValue = spell.getManaValue(); - spell.counter(source, game); + game.getStack().counter(spell.getId(), source, game);; FilterCard filter = new FilterCard(); filter.add(new ManaValuePredicate(ComparisonType.EQUAL_TO, manaValue)); player.seekCard(filter, source, game); diff --git a/Mage.Sets/src/mage/cards/r/Reinterpret.java b/Mage.Sets/src/mage/cards/r/Reinterpret.java index d904f31f55..7fdfc9de9f 100644 --- a/Mage.Sets/src/mage/cards/r/Reinterpret.java +++ b/Mage.Sets/src/mage/cards/r/Reinterpret.java @@ -65,7 +65,7 @@ class ReinterpretEffect extends OneShotEffect { return false; } int manaValue = spell.getManaValue(); - spell.counter(source, game); + game.getStack().counter(spell.getId(), source, game);; FilterCard filter = new FilterCard(); filter.add(new ManaValuePredicate( ComparisonType.FEWER_THAN, manaValue + 1