mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Be a little less reckless when evaluating a no-counterattack attrition attack
This commit is contained in:
@@ -1249,7 +1249,8 @@ public class AiAttackController {
|
|||||||
System.out.println(attacker.getName() + " = all out attacking");
|
System.out.println(attacker.getName() + " = all out attacking");
|
||||||
return true;
|
return true;
|
||||||
case 4: // expecting to at least trade with something, or can attack "for free", expecting no counterattack
|
case 4: // expecting to at least trade with something, or can attack "for free", expecting no counterattack
|
||||||
if (canKillAll || (canKillAllDangerous && !canBeKilledByOne) || !canBeBlocked || defPower == 0) {
|
if (canKillAll || (canKillAllDangerous && !canBeKilledByOne) || !canBeBlocked
|
||||||
|
|| (defPower == 0 && !ComputerUtilCombat.lifeInDanger(ai, combat))) {
|
||||||
if (LOG_AI_ATTACKS)
|
if (LOG_AI_ATTACKS)
|
||||||
System.out.println(attacker.getName() + " = attacking expecting to at least trade with something");
|
System.out.println(attacker.getName() + " = attacking expecting to at least trade with something");
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user