From cc49e79a861a90ff9bc0544fe6cbb842a04e2972 Mon Sep 17 00:00:00 2001 From: west3436 <66280799+west3436@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:54:40 -0400 Subject: [PATCH] fixes infinite respawns (#37168) --- code/modules/mob/living/carbon/brain/brain.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm index d31542355c59..ab4d55a64cf4 100644 --- a/code/modules/mob/living/carbon/brain/brain.dm +++ b/code/modules/mob/living/carbon/brain/brain.dm @@ -19,7 +19,9 @@ verbs -= /mob/living/carbon/verb/mob_sleep /mob/living/carbon/brain/Destroy() - if(key) //If there is a mob connected to this thing. Have to check key twice to avoid false death reporting. + if(key || mind.key) + if(!key) + src.key = mind.key if(stat!=DEAD) //If not dead. death(1) //Brains can die again. AND THEY SHOULD AHA HA HA HA HA HA ..()