Skip to content

Commit

Permalink
bugfix: defib paddles logic fix (ss220-space#4013)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROdenFL authored and Etrnlmelancholy committed Jan 3, 2024
1 parent fddfb39 commit 6894b91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/items/weapons/defib.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6894b91

Please sign in to comment.