mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
[MIRROR] Fix error on secondary attacking certain secure closets. (#6660)
* Fix error on secondary attacking certain secure closets. (#59867) * Feex * Reviewify * Fix error on secondary attacking certain secure closets. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -473,12 +473,13 @@
|
||||
open()
|
||||
|
||||
/obj/structure/closet/attack_hand_secondary(mob/user, modifiers)
|
||||
. = SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
|
||||
|
||||
if(!user.canUseTopic(src, BE_CLOSE) || !isturf(loc))
|
||||
return
|
||||
|
||||
if(!opened && secure)
|
||||
togglelock(user)
|
||||
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
|
||||
|
||||
/obj/structure/closet/proc/togglelock(mob/living/user, silent)
|
||||
if(secure && !broken)
|
||||
|
||||
Reference in New Issue
Block a user