From 8604d9c401703307fbab6491069cf6f443a9b85c Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 16 Jan 2023 17:33:19 +0300 Subject: [PATCH] Fix check --- src/combat_ai.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/combat_ai.cc b/src/combat_ai.cc index d9210d3..797d9e0 100644 --- a/src/combat_ai.cc +++ b/src/combat_ai.cc @@ -3071,7 +3071,7 @@ void _combat_ai(Object* a1, Object* a2) } 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 && objectGetDistanceBetween(a1, a2) > ai->max_dist) { Object* friendlyDead = aiInfoGetFriendlyDead(a1);