From 1586e8fd2b7586b71e3c99fb2cb2bf6b5c919f5d Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:28:56 +0300 Subject: [PATCH] Allow possibly taking cover without full APs --- TacticalAI/DecideAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TacticalAI/DecideAction.cpp b/TacticalAI/DecideAction.cpp index 808712d64..0ac24fe53 100644 --- a/TacticalAI/DecideAction.cpp +++ b/TacticalAI/DecideAction.cpp @@ -6273,7 +6273,7 @@ INT8 DecideActionBlack(SOLDIERTYPE *pSoldier) //////////////////////////////////////////////////////////////////////////// // POSSIBLY FORGET THE ATTACK AND TAKE COVER //////////////////////////////////////////////////////////////////////////// - if ( (pSoldier->bActionPoints == pSoldier->bInitialActionPoints) && + if ( //(pSoldier->bActionPoints == pSoldier->bInitialActionPoints) && (ubBestAttackAction == AI_ACTION_FIRE_GUN) && (pSoldier->aiData.bShock == 0) && (pSoldier->stats.bLife >= pSoldier->stats.bLifeMax / 2) &&