From b423c232f8e45ebba80f58a97a5a635a24f2749d Mon Sep 17 00:00:00 2001 From: Sealed101 Date: Tue, 8 Aug 2023 19:21:15 +0300 Subject: [PATCH] [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 :cl: fix: fixed basic mobs freezing up when in melee range of a target /:cl: --- .../ai/basic_mobs/targetting_datums/basic_targetting_datum.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/ai/basic_mobs/targetting_datums/basic_targetting_datum.dm b/code/datums/ai/basic_mobs/targetting_datums/basic_targetting_datum.dm index de0355c32ec..643089bb5ea 100644 --- a/code/datums/ai/basic_mobs/targetting_datums/basic_targetting_datum.dm +++ b/code/datums/ai/basic_mobs/targetting_datums/basic_targetting_datum.dm @@ -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