mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Little fix for the latest AI attack improvement.
This commit is contained in:
@@ -325,7 +325,7 @@ public class ComputerUtil_Attack2 {
|
||||
}
|
||||
}
|
||||
// A creature should attack if it can't be killed
|
||||
if (CombatUtil.totalDamageOfBlockers(attacker, blockers) < attacker.getKillDamage()) return true;
|
||||
if (CombatUtil.totalDamageOfBlockers(attacker, blockers) < attacker.getKillDamage() && !canBeKilledByOne) return true;
|
||||
|
||||
return (canKillAll && !canBeKilledByOne); // A creature should attack if it can't be killed or can kill any blocker
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user