From 1ff034b0aff84fe0113706c734d71700cc71bf7f Mon Sep 17 00:00:00 2001 From: oranges Date: Tue, 25 Jul 2017 23:06:29 +0000 Subject: [PATCH] Revert "Fixes hivebot swarm core not clearing it's target" This reverts commit 00870ee32e3bb25eb6292c2e62a23a13ec02598b. --- code/game/machinery/hivebot_swarm_core.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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