fixes overhealing exploit (#20489)

This commit is contained in:
GDN
2023-02-24 18:14:05 -06:00
committed by GitHub
parent 2ae6203786
commit 201bb2bb3b
2 changed files with 4 additions and 4 deletions
@@ -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