Revert "Fixes hivebot swarm core not clearing it's target"

This reverts commit 00870ee32e.
This commit is contained in:
oranges
2017-07-25 23:06:29 +00:00
parent 61acff1f0c
commit 1ff034b0af
+2 -2
View File
@@ -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