Fix getting random target

This commit is contained in:
Alexander Batalov 2022-08-31 18:31:23 +03:00
parent 916bf40602
commit 893a116fb4
1 changed files with 1 additions and 1 deletions

View File

@ -3220,7 +3220,7 @@ Object* _combat_ai_random_target(Attack* attack)
if (obj != attack->attacker
&& obj != attack->defender
&& _can_see(attack->attacker, obj)
&& _combat_check_bad_shot(attack->attacker, obj, attack->hitMode, false)) {
&& _combat_check_bad_shot(attack->attacker, obj, attack->hitMode, false) == COMBAT_BAD_SHOT_OK) {
critter = obj;
break;
}