From d85c63ead3fc498dbe82568aa9567954610fdfc4 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sun, 1 Aug 2021 08:03:21 +1000 Subject: [PATCH] Fixes eggless nurse/spider queens being able to lay eggs when player-controlled --- .../living/simple_mob/subtypes/animal/giant_spider/nurse.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/nurse.dm b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/nurse.dm index 0c8514f4b61..6845a51e1e6 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/nurse.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/nurse.dm @@ -73,7 +73,7 @@ // Webs target in a web if able to. /mob/living/simple_mob/animal/giant_spider/nurse/attack_target(atom/A) if(isturf(A)) - if(fed) + if(fed && can_lay_eggs) if(!laying_eggs) return lay_eggs(A) return web_tile(A) @@ -186,6 +186,9 @@ if(!fed) return FALSE + if(!can_lay_eggs) + return FALSE + var/obj/effect/spider/eggcluster/E = locate() in T if(E) return FALSE // Already got eggs here.