Skip to content

Commit

Permalink
fixes infinite respawns (#37168)
Browse files Browse the repository at this point in the history
  • Loading branch information
west3436 authored Sep 24, 2024
1 parent 400e668 commit cc49e79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/brain/brain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
..()
Expand Down

0 comments on commit cc49e79

Please sign in to comment.