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);