Merge pull request #2954 from Card-Forge/Hanmac-patch-replaceDamageBattle

Update ReplaceDamage with Battle checks
This commit is contained in:
Anthony Calosa
2023-04-18 16:30:01 +08:00
committed by GitHub

View File

@@ -120,13 +120,13 @@ public class ReplaceDamage extends ReplacementEffect {
return false; return false;
} }
} else { } else {
for (Player p : AbilityUtils.getDefinedPlayers(getHostCard(), def, null)) { for (Player p : AbilityUtils.getDefinedPlayers(getHostCard(), def, this)) {
if (!game.getPlayers().contains(p)) { if (!p.isInGame()) {
return false; return false;
} }
} }
for (Card c : AbilityUtils.getDefinedCards(getHostCard(), def, null)) { for (Card c : AbilityUtils.getDefinedCards(getHostCard(), def, this)) {
if (!c.isCreature() && !c.isPlaneswalker()) { if (!c.isCreature() && !c.isPlaneswalker() && !c.isBattle()) {
return false; return false;
} }
if (!c.isInPlay()) { if (!c.isInPlay()) {