[s] The PR I just made about fixing an IPC revival exploit but this time I'm on the right branch (#23916)

* s help binary bot ling

* Update code/modules/surgery/organs/organ_helpers.dm

---------

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
BiancaWilkson
2024-01-25 03:16:29 -05:00
committed by GitHub
parent 9d1680fcaa
commit 4777528c6e
2 changed files with 7 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
if(dna.species && dna.species.can_revive_by_healing)
var/obj/item/organ/internal/brain/B = get_int_organ(/obj/item/organ/internal/brain)
if(B)
if((health >= (HEALTH_THRESHOLD_DEAD + HEALTH_THRESHOLD_CRIT) * 0.5) && getBrainLoss() < 120 && !suiciding)
if((health >= (HEALTH_THRESHOLD_DEAD + HEALTH_THRESHOLD_CRIT) * 0.5) && check_vital_organs() && !suiciding)
update_revive()
create_debug_log("revived from healing, trigger reason: [reason]")