From fcc1239b7cbba6d2626ff9588b7b19a8ea4c6532 Mon Sep 17 00:00:00 2001 From: AnturK Date: Mon, 10 Apr 2017 23:07:16 +0200 Subject: [PATCH] Fixes #24120 (#26040) --- code/game/objects/items/weapons/implants/implant_explosive.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/implants/implant_explosive.dm b/code/game/objects/items/weapons/implants/implant_explosive.dm index c6e558533a7..ad7079fee1c 100644 --- a/code/game/objects/items/weapons/implants/implant_explosive.dm +++ b/code/game/objects/items/weapons/implants/implant_explosive.dm @@ -10,6 +10,7 @@ var/heavy = 0.4 var/delay = 7 var/popup = FALSE // is the DOUWANNABLOWUP window open? + var/active = FALSE /obj/item/weapon/implant/explosive/get_data() var/dat = {"Implant Specifications:
@@ -28,7 +29,7 @@ activate("death") /obj/item/weapon/implant/explosive/activate(cause) - if(!cause || !imp_in) + if(!cause || !imp_in || active) return 0 if(cause == "action_button" || !popup) popup = TRUE @@ -40,6 +41,7 @@ medium = round(medium) weak = round(weak) to_chat(imp_in, "You activate your [name].") + active = TRUE var/turf/boomturf = get_turf(imp_in) var/area/A = get_area(boomturf) message_admins("[key_name_admin(imp_in)]? (FLW) has activated their [name] at [A.name] (JMP).")