From 82c968a46e94b45652a05a24e4dba0404a6d4f89 Mon Sep 17 00:00:00 2001 From: Morrow Date: Sat, 28 Oct 2023 17:01:17 -0400 Subject: [PATCH] bam --- .../mob/living/carbon/xenomorph/ai/movement/lurking.dm | 7 ++++++- code/modules/mob/living/carbon/xenomorph/castes/Lurker.dm | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/ai/movement/lurking.dm b/code/modules/mob/living/carbon/xenomorph/ai/movement/lurking.dm index beb832e89a..327ec39a8f 100644 --- a/code/modules/mob/living/carbon/xenomorph/ai/movement/lurking.dm +++ b/code/modules/mob/living/carbon/xenomorph/ai/movement/lurking.dm @@ -111,7 +111,12 @@ if(moving_xeno.throwing) return - if(moving_xeno.current_target.is_mob_incapacitated()) + var/incapacitated_check = TRUE + if(istype(moving_xeno.current_target, /mob)) + var/mob/current_target_mob = moving_xeno.current_target + incapacitated_check = current_target_mob.is_mob_incapacitated() + + if(incapacitated_check) return ..() var/turf/target_turf = get_turf(moving_xeno.current_target) diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Lurker.dm b/code/modules/mob/living/carbon/xenomorph/castes/Lurker.dm index af525c4e45..f85a0088fe 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Lurker.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Lurker.dm @@ -96,7 +96,12 @@ if(get_dist(current_target, src) > 1) return - if(!current_target.is_mob_incapacitated()) + if(!istype(current_target, /mob)) + return + + var/mob/current_target_mob = current_target + + if(!current_target_mob.is_mob_incapacitated()) return if(isxeno(current_target.pulledby))