Skip to content

Commit

Permalink
stops dead people using their human keybinds (#7360)
Browse files Browse the repository at this point in the history
fixes #7358

also: fixes people being able to show-held-item when they're dead
through the keybind (like if they're a pred and can't drop their
wristblades)

:cl:
fix: fixes being able to use hotkeys for humans when you're a dead human
/:cl:
  • Loading branch information
harryob authored Oct 26, 2024
1 parent 3b49a05 commit 74baeff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/keybinding/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
weight = WEIGHT_MOB

/datum/keybinding/human/can_use(client/user)
return ishuman(user.mob)
return ishuman(user.mob) && user.mob.stat == CONSCIOUS

/datum/keybinding/human/issue_order
hotkey_keys = list("Unbound")
Expand Down

0 comments on commit 74baeff

Please sign in to comment.