Fix check

This commit is contained in:
Alexander Batalov 2023-01-16 17:33:19 +03:00
parent b9261c3da2
commit 8604d9c401
1 changed files with 1 additions and 1 deletions

View File

@ -3071,7 +3071,7 @@ void _combat_ai(Object* a1, Object* a2)
} }
if (a2 != NULL if (a2 != NULL
&& (a1->data.critter.combat.results & DAM_DEAD) == 0 && (a2->data.critter.combat.results & DAM_DEAD) == 0
&& a1->data.critter.combat.ap != 0 && a1->data.critter.combat.ap != 0
&& objectGetDistanceBetween(a1, a2) > ai->max_dist) { && objectGetDistanceBetween(a1, a2) > ai->max_dist) {
Object* friendlyDead = aiInfoGetFriendlyDead(a1); Object* friendlyDead = aiInfoGetFriendlyDead(a1);