mirror of
https://github.com/correl/mage.git
synced 2024-12-27 11:07:39 +00:00
Fix various counterspell effects not respecting replacement effects
This commit is contained in:
parent
a48dedcd76
commit
5f4de26044
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue