mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- check for regeneration shields when using curses to deal lethal damage
This commit is contained in:
@@ -1413,13 +1413,13 @@ public class ComputerUtil {
|
||||
if (o instanceof Card) {
|
||||
final Card c = (Card) o;
|
||||
final boolean canRemove = (c.getNetDefense() <= dmg)
|
||||
|| (!c.hasKeyword("Indestructible") && (dmg >= ComputerUtilCombat.getDamageToKill(c)));
|
||||
|| (!c.hasKeyword("Indestructible") && c.getShield().isEmpty() && (dmg >= ComputerUtilCombat.getDamageToKill(c)));
|
||||
if (!canRemove) {
|
||||
continue;
|
||||
}
|
||||
if (saviourApi == ApiType.Pump) {
|
||||
final boolean cantSave = c.getNetDefense() + defense <= dmg
|
||||
|| (!c.hasKeyword("Indestructible") && !grantIndestructible
|
||||
|| (!c.hasKeyword("Indestructible") && c.getShield().isEmpty() && !grantIndestructible
|
||||
&& (dmg >= defense + ComputerUtilCombat.getDamageToKill(c)));
|
||||
if (cantSave && (tgt == null || !grantShroud)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user