From 7cfbe6f482edd510dca8b2b363e32b4c8ea18482 Mon Sep 17 00:00:00 2001 From: fira Date: Tue, 24 Oct 2023 13:53:10 +0200 Subject: [PATCH] Fixes pounces targeting unliving on the landing turf (#4776) # About the pull request Fixes #1053 Stops pounce landing from scanning ghosts/holograms and targeting them in place of a living target. It was pretty obvious for Queen Eye but apparently seemed to actually happen with Ghosts aswell - since there was no message due to checks further down, it was overlooked # Explain why it's good for the game Invisible bugs aren't so fun # Changelog :cl: fix: Fixed Ghosts and Queen Eye occasionally "eating" pounces in place of a mob on the same turf. /:cl: --- code/modules/mob/living/carbon/xenomorph/XenoProcs.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm b/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm index fa9036bd8305..3fd8e53024d5 100644 --- a/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm +++ b/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm @@ -357,8 +357,8 @@ /mob/living/carbon/xenomorph/proc/pounced_turf(turf/T) if(!T.density) - for(var/mob/M in T) - pounced_mob(M) + for(var/mob/living/mob in T) + pounced_mob(mob) break else turf_launch_collision(T)