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