Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Jan 16, 2023
1 parent b9261c3 commit 8604d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combat_ai.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8604d9c

Please sign in to comment.