Skip to content

Commit

Permalink
better XvX compat
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Jan 16, 2024
1 parent 7dd5bc0 commit f470157
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f470157

Please sign in to comment.