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