Fixes altclicking wallet while unconscious or in soft crit

This commit is contained in:
ivanmixo
2020-06-19 12:08:19 +02:00
parent 99bead89a4
commit 39b38a223e
@@ -1,5 +1,5 @@
/datum/component/storage/concrete/wallet/on_alt_click(datum/source, mob/user)
if(!isliving(user) || !user.CanReach(parent))
if(!isliving(user) || !user.CanReach(parent) || SOFT_CRIT || UNCONSCIOUS)
return
if(locked)
to_chat(user, "<span class='warning'>[parent] seems to be locked!</span>")