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;
|
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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user