diff --git a/code/game/machinery/defibrillator_mount.dm b/code/game/machinery/defibrillator_mount.dm
index f3be6ac214..7107a0baea 100644
--- a/code/game/machinery/defibrillator_mount.dm
+++ b/code/game/machinery/defibrillator_mount.dm
@@ -120,7 +120,7 @@
/obj/machinery/defibrillator_mount/AltClick(mob/living/carbon/user)
. = ..()
- if(!istype(user) || !user.canUseTopic(src, BE_CLOSE))
+ if(!istype(user) || !user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
return
. = TRUE
if(!defib)
@@ -129,9 +129,10 @@
if(clamps_locked)
to_chat(user, "You try to tug out [defib], but the mount's clamps are locked tight!")
return
- if(!user.put_in_hands(defib))
+ if(!user.get_empty_held_indexes)
to_chat(user, "You need a free hand!")
return
+ user.put_in_hands(defib)
user.visible_message("[user] unhooks [defib] from [src].", \
"You slide out [defib] from [src] and unhook the charging cables.")
playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
@@ -147,4 +148,4 @@
materials = list(MAT_METAL = 300, MAT_GLASS = 100)
w_class = WEIGHT_CLASS_BULKY
result_path = /obj/machinery/defibrillator_mount
- pixel_shift = -28
\ No newline at end of file
+ pixel_shift = -28