From 2c84cbe48dab3f55ee6cae80abfcd39cbe4e9318 Mon Sep 17 00:00:00 2001 From: Flugente Date: Thu, 28 Sep 2017 21:27:59 +0000 Subject: [PATCH] Change: AI does not attack mercs that are already dying, thus focusing on more dangerous opponents while giving the player a chance to rescue dying mercs (by sevenfm) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8483 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Control.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tactical/Soldier Control.h b/Tactical/Soldier Control.h index 519cc707..c04da42f 100644 --- a/Tactical/Soldier Control.h +++ b/Tactical/Soldier Control.h @@ -642,7 +642,7 @@ extern CLOTHES_STRUCT Clothes[CLOTHES_MAX]; // IF WE ARE CONSIDERING ATTACKING THEM. Creatures & bloodcats will attack neutrals // but they can't attack empty vehicles!! #define CONSIDERED_NEUTRAL( me, them ) (\ - ( them->aiData.bNeutral || them->usSoldierFlagMask & (SOLDIER_COVERT_CIV|SOLDIER_COVERT_SOLDIER|SOLDIER_POW) ) \ + ( them->aiData.bNeutral || them->usSoldierFlagMask & (SOLDIER_COVERT_CIV|SOLDIER_COVERT_SOLDIER|SOLDIER_POW) || (them->flags.uiStatusFlags & SOLDIER_PC && them->stats.bLife < OKLIFE) ) \ && ( me->bTeam != CREATURE_TEAM || (them->flags.uiStatusFlags & SOLDIER_VEHICLE) ) \ && !( me->flags.uiStatusFlags & SOLDIER_BOXER && them->flags.uiStatusFlags & SOLDIER_BOXER ) \ )