From e02222f11f0bcbaa8cd90f05d3eca4383f76e157 Mon Sep 17 00:00:00 2001 From: HugoLuman Date: Thu, 19 May 2016 17:31:35 -0700 Subject: [PATCH] Check actually works now Tested it. Hopefully that's the last commit needed. --- code/game/gamemodes/miniantags/bot_swarm/swarmer.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm b/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm index a94cf2cf1fa..8ad934391b5 100644 --- a/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm +++ b/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm @@ -160,10 +160,10 @@ /obj/machinery/field/generator/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - if(powered) - to_chat(S, "An inhospitable area may be created as a result of destroying this object. Aborting.") + if(!active) + S.DisIntegrate(src) return - else S.DisIntegrate(src) + else to_chat(S, "An inhospitable area may be created as a result of destroying this object. Aborting.") /obj/machinery/gravity_generator/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) S.DisIntegrate(src)