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;
}
} else {
for (Player p : AbilityUtils.getDefinedPlayers(getHostCard(), def, null)) {
if (!game.getPlayers().contains(p)) {
for (Player p : AbilityUtils.getDefinedPlayers(getHostCard(), def, this)) {
if (!p.isInGame()) {
return false;
}
}
for (Card c : AbilityUtils.getDefinedCards(getHostCard(), def, null)) {
if (!c.isCreature() && !c.isPlaneswalker()) {
for (Card c : AbilityUtils.getDefinedCards(getHostCard(), def, this)) {
if (!c.isCreature() && !c.isPlaneswalker() && !c.isBattle()) {
return false;
}
if (!c.isInPlay()) {