From 201bb2bb3b7b81f1cab927ad37a7f236698a635b Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:14:05 -0600 Subject: [PATCH] fixes overhealing exploit (#20489) --- code/modules/mob/living/carbon/human/human_defense.dm | 4 ++-- code/modules/power/cable.dm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 57260ab78ee..f431f5f4525 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -104,12 +104,12 @@ emp_act E = S else if(LAZYLEN(childlist)) E = pick_n_take(childlist) - if(!E.brute_dam || !E.is_robotic()) + if(!E.brute_dam || E.brute_dam >= ROBOLIMB_SELF_REPAIR_CAP || !E.is_robotic()) continue else if(S.parent && !parenthealed) E = S.parent parenthealed = TRUE - if(!E.brute_dam || !E.is_robotic()) + if(!E.brute_dam || E.brute_dam >= ROBOLIMB_SELF_REPAIR_CAP || !E.is_robotic()) break else break diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm index 2052c748354..10e209e051a 100644 --- a/code/modules/power/cable.dm +++ b/code/modules/power/cable.dm @@ -559,12 +559,12 @@ GLOBAL_LIST_INIT(cable_coil_recipes, list (new/datum/stack_recipe/cable_restrain E = S else if(LAZYLEN(childlist)) E = pick_n_take(childlist) - if(!E.burn_dam || !E.is_robotic()) + if(!E.burn_dam || E.burn_dam >= ROBOLIMB_SELF_REPAIR_CAP || !E.is_robotic()) continue else if(S.parent && !parenthealed) E = S.parent parenthealed = TRUE - if(!E.burn_dam || !E.is_robotic()) + if(!E.burn_dam || E.burn_dam >= ROBOLIMB_SELF_REPAIR_CAP || !E.is_robotic()) break else break