diff --git a/code/game/machinery/hivebot_swarm_core.dm b/code/game/machinery/hivebot_swarm_core.dm index ef41f1b6de5..d8c05ff4f3d 100644 --- a/code/game/machinery/hivebot_swarm_core.dm +++ b/code/game/machinery/hivebot_swarm_core.dm @@ -70,9 +70,9 @@ /obj/machinery/hivebot_swarm_core/proc/defend_the_swarm() var/atom/movable/threat_to_swarm = src.threat_to_swarm var/mob/living/L = threat_to_swarm - if(!istype(L)) + if(!istype(L) || L.stat) L = null - if(QDELETED(threat_to_swarm) || !(threat_to_swarm in view(7, src)) || (L && L.stat)) + if(QDELETED(threat_to_swarm) || !threat_to_swarm in view(7, src) || L) say("TARGET LOST. RESUMING FABRICATION ROUTINE.") threat_to_swarm = null return