From f4701578146d700440836f6d44eb469f105885b3 Mon Sep 17 00:00:00 2001 From: xDanilcusx Date: Tue, 16 Jan 2024 21:23:31 +0300 Subject: [PATCH] better XvX compat --- .../carbon/xenomorph/ai/movement/facehugger.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/ai/movement/facehugger.dm b/code/modules/mob/living/carbon/xenomorph/ai/movement/facehugger.dm index bb109cdaff..1c451612a6 100644 --- a/code/modules/mob/living/carbon/xenomorph/ai/movement/facehugger.dm +++ b/code/modules/mob/living/carbon/xenomorph/ai/movement/facehugger.dm @@ -77,20 +77,20 @@ #undef FIND_NEW_TRAVEL_TURF_LIMIT #undef FIND_NEW_TRAVEL_RADIUS_MAX -/mob/living/carbon/xenomorph/facehugger/check_mob_target(mob/living/carbon/human/checked_human) - if(!istype(checked_human)) +/mob/living/carbon/xenomorph/facehugger/check_mob_target(mob/living/carbon/checked_target) + if(!iscarbonsizehuman(checked_target)) return FALSE // We don't wanna to attack anyone except humans (compat for soon coming XvX code) - if(istype(checked_human.wear_mask, /obj/item/clothing/mask/facehugger)) + if(istype(checked_target.wear_mask, /obj/item/clothing/mask/facehugger)) return FALSE - if(checked_human.status_flags & XENO_HOST) + if(checked_target.status_flags & XENO_HOST) return FALSE - if(can_not_harm(checked_human)) + if(can_not_harm(checked_target)) return FALSE - if(checked_human.stat == DEAD) + if(checked_target.stat == DEAD) return FALSE return TRUE