Fixes eggless nurse/spider queens being able to lay eggs when player-controlled

This commit is contained in:
Heroman
2021-08-01 08:03:21 +10:00
parent 0b6aa5131d
commit d85c63ead3
@@ -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.