mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Alt-click-toggles now do proper checks
Such as if you're near the thing, conscious, alive etc. Fixes #9238
This commit is contained in:
@@ -351,8 +351,8 @@
|
||||
|
||||
/obj/structure/closet/AltClick(var/mob/user)
|
||||
..()
|
||||
if(user.stat || !user.canmove || user.restrained() || broken)
|
||||
user << "<span class='notice'>You can't do that right now.</span>"
|
||||
if(!user.canUseTopic(user) || broken)
|
||||
user << "<span class='warning'>You can't do that right now!</span>"
|
||||
return
|
||||
if(src.opened || !secure || !in_range(src, user))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user