mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
adds brain null check to /mob/living/carbon/human/handle_critical_condition() (#29457)
This commit is contained in:
@@ -625,7 +625,7 @@
|
||||
var/guaranteed_death_threshold = health + (getOxyLoss() * 0.5) - (getFireLoss() * 0.67) - (getBruteLoss() * 0.67)
|
||||
|
||||
var/obj/item/organ/internal/brain = get_int_organ(/obj/item/organ/internal/brain)
|
||||
if(brain?.damage >= brain.max_damage || (guaranteed_death_threshold) <= -500)
|
||||
if(brain?.damage >= brain?.max_damage || guaranteed_death_threshold <= -500)
|
||||
death()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user