From c1f45f2c48733bb642e9a35f8871350edaf09525 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Tue, 11 Nov 2025 00:50:06 +0100 Subject: [PATCH] fix digest pain pref runtimes (#18772) --- code/modules/mob/living/carbon/human/human.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 0f024da05fa..c6383f22a28 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1671,10 +1671,13 @@ /mob/living/carbon/human/can_feel_pain(var/obj/item/organ/check_organ) if(isSynthetic()) return 0 - if(!digest_pain && (isbelly(src.loc) || istype(src.loc, /turf/simulated/floor/water/digestive_enzymes))) - var/obj/belly/b = src.loc - if(b.digest_mode == DM_DIGEST || b.digest_mode == DM_SELECT) + if(!digest_pain) + if(istype(loc, /turf/simulated/floor/water/digestive_enzymes)) return FALSE + if(isbelly(loc)) + var/obj/belly/b = loc + if(b.digest_mode == DM_DIGEST || b.digest_mode == DM_SELECT) + return FALSE for(var/datum/modifier/M in modifiers) if(M.pain_immunity == TRUE) return 0