[NO GBP] Fixes basic mobs freezing up when in melee range of a target (#77434)

## About The Pull Request

whoops missed an `!` and didn't test the code

fixes #77444
fixes #77449

## Changelog

🆑
fix: fixed basic mobs freezing up when in melee range of a target
/🆑
This commit is contained in:
Sealed101
2023-08-08 17:21:15 +01:00
committed by GitHub
parent ae01e5adbc
commit b423c232f8
@@ -34,7 +34,7 @@
if(M.status_flags & GODMODE)
return FALSE
if(!ignore_sight && can_see(living_mob, the_target, vision_range)) //Target has moved behind cover and we have lost line of sight to it
if(!ignore_sight && !can_see(living_mob, the_target, vision_range)) //Target has moved behind cover and we have lost line of sight to it
return FALSE
if(living_mob.see_invisible < the_target.invisibility) //Target's invisible to us, forget it