From bcf5dad75d0ff8ea20caf9c4c31d9dc459090c4f Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Thu, 1 May 2025 00:57:57 -0700 Subject: [PATCH] [MIRROR] Makes self surgery not work when var is set to 0 (#10818) Co-authored-by: tacoguy7765093 --- code/_helpers/unsorted.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index 209b67ee36..d05eb3920e 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -1158,9 +1158,9 @@ var/global/list/common_tools = list( // check if mob is lying down on something we can operate him on. // The RNG with table/rollerbeds comes into play in do_surgery() so that fail_step() can be used instead. /proc/can_operate(mob/living/carbon/M, mob/living/user) - . = M.lying - - if(user && M == user && user.allow_self_surgery && user.a_intent == I_HELP) // You can, technically, always operate on yourself after standing still. Inadvised, but you can. + if(M != user) + . = M.lying + else if(user && user.allow_self_surgery && user.a_intent == I_HELP) // You can, technically, always operate on yourself after standing still. Inadvised, but you can. . = TRUE return .