Ensures bots are only emaggable once

This commit is contained in:
Yoshax
2016-07-12 21:40:07 +01:00
parent 98099eb56d
commit 44d0ee657c

View File

@@ -87,12 +87,15 @@
/mob/living/bot/secbot/emag_act(var/remaining_uses, var/mob/user)
. = ..()
if(user)
user << "<span class='notice'>The [src] buzzes and beeps.</span>"
emagged = 1
patrol_speed = 3
target_speed = 4
return 1
if(!emagged)
if(user)
user << "<span class='notice'>\The [src] buzzes and beeps.</span>"
emagged = 1
patrol_speed = 3
target_speed = 4
return 1
else
user << "<span class='notice'>\The [src] is already corrupt.</span>"
/mob/living/bot/secbot/attackby(var/obj/item/O, var/mob/user)
var/curhealth = health