mirror of
https://github.com/correl/mage.git
synced 2024-12-28 03:00:10 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue