From 8ca8fd295ac38846516f7d9653b1585154452ccc Mon Sep 17 00:00:00 2001 From: Theos Date: Thu, 28 Dec 2023 11:44:25 -0500 Subject: [PATCH] Fixes the decompressed katana bricking itself (#2608) ## About The Pull Request code pulled the blade out of the sheath before checking if it was viably targetted meaning you could remove the blade without clearing the lock on the sheath ## Why It's Good For The Game fixes #2501 ## Changelog :cl: fix: the weebstick is no longer held back from its true purpose if you click on a tile you can't see /:cl: Signed-off-by: Theos --- code/game/objects/items/melee/misc.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/melee/misc.dm b/code/game/objects/items/melee/misc.dm index 153c3a75564d..faf1e6d92995 100644 --- a/code/game/objects/items/melee/misc.dm +++ b/code/game/objects/items/melee/misc.dm @@ -763,12 +763,12 @@ /obj/item/storage/belt/weebstick/afterattack(atom/A, mob/living/user, proximity_flag, params) . = ..() if(primed && length(contents)) + if(!(A in view(user.client.view, user))) + return var/obj/item/I = contents[1] if(!user.put_in_inactive_hand(I)) to_chat(user, "You need a free hand!") return - if(!(A in view(user.client.view, user))) - return var/datum/component/storage/CP = GetComponent(/datum/component/storage) CP.locked = FALSE primed = FALSE