From 925abd73f8e41dc8d068b72f28d30e217ac21be6 Mon Sep 17 00:00:00 2001 From: Morrow Date: Sat, 28 Oct 2023 18:11:03 -0400 Subject: [PATCH] fixes synth targeting return --- code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm b/code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm index 89cc7b849a..72e7ffc8a0 100644 --- a/code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm +++ b/code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm @@ -213,7 +213,8 @@ GLOBAL_LIST_INIT(ai_target_limbs, list( var/smallest_distance = INFINITY for(var/mob/living/carbon/human/alive_human as anything in GLOB.alive_human_list) if(alive_human.species.flags & IS_SYNTHETIC) - return pick(viable_humans) + continue + if(z != alive_human.z) continue var/distance = get_dist(src, alive_human)