From 8b7831fbe2a9779a97e58f4b0fb131f2495cf6bd Mon Sep 17 00:00:00 2001 From: ROdenFL <144662735+ROdenFL@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:49:31 +0300 Subject: [PATCH] bugfix: defib paddles logic fix --- code/game/objects/items/weapons/defib.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/weapons/defib.dm b/code/game/objects/items/weapons/defib.dm index 5d4c1845f11..9949b240712 100644 --- a/code/game/objects/items/weapons/defib.dm +++ b/code/game/objects/items/weapons/defib.dm @@ -86,15 +86,15 @@ update_icon() -/obj/item/defibrillator/ui_action_click() - if(!ishuman(usr) && !Adjacent(usr)) +/obj/item/defibrillator/ui_action_click(mob/user) + if(!ishuman(user) || !Adjacent(user)) return toggle_paddles() -/obj/item/defibrillator/CtrlClick() - if(!ishuman(usr) && !Adjacent(usr)) +/obj/item/defibrillator/CtrlClick(mob/user) + if(!ishuman(user) || !Adjacent(user)) return toggle_paddles()