fixes infinite respawns (#37168)

This commit is contained in:
west3436
2024-09-24 15:54:40 -04:00
committed by GitHub
parent 400e668ba9
commit cc49e79a86

View File

@@ -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
..()