mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Merge pull request #2954 from Card-Forge/Hanmac-patch-replaceDamageBattle
Update ReplaceDamage with Battle checks
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user