From f1f724b6e1e04735350b697005baacabcf363c96 Mon Sep 17 00:00:00 2001 From: RKz Date: Thu, 22 Aug 2024 18:33:09 -0400 Subject: [PATCH] merge skew --- code/_onclick/click.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index cd4cb44ec188d..01283b31ebc4f 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -194,7 +194,7 @@ if(closed[target] || isarea(target)) // avoid infinity situations continue - if(isturf(target) || isturf(target.loc) || (target in direct_access) || (ismovable(target) && target.flags_1 & IS_ONTOP_1)) //Directly accessible atoms + if(isturf(target) || isturf(target.loc) || HasDirectAccess(target) || (ismovable(target) && target.flags_1 & IS_ONTOP_1)) //Directly accessible atoms if(Adjacent(target) || (tool && CheckToolReach(src, target, tool.reach))) //Adjacent or reaching attacks return TRUE