From e8097b476ca156fd03fa0c9761b223946642b147 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Fri, 30 Jun 2023 01:25:03 -0700 Subject: [PATCH] Test structure density instead (Why is this check normally also tested against ON_BORDER?) --- .../living/carbon/xenomorph/abilities/general_powers.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm b/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm index a71a7f271ec9..fbf7d993a067 100644 --- a/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm +++ b/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm @@ -45,10 +45,10 @@ to_chat(xeno, SPAN_WARNING("These weeds are too strong to plant a node on!")) return - var/obj/structure/window_frame/window = locate() in turf - if(window && window.density) - to_chat(xeno, SPAN_WARNING("You can't do that here.")) - return + for(var/obj/structure/struct in turf) + if(struct.density && !(struct.flags_atom & ON_BORDER)) // Not sure exactly if we need to test against ON_BORDER though + to_chat(xeno, SPAN_WARNING("You can't do that here.")) + return var/area/area = get_area(turf) if(isnull(area) || !(area.is_resin_allowed))