mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fixes #9685.
Observer from the lobby do not have minds, while observers that once lived do. Re-arranges the MayRespawn() logic to handle these situation.
This commit is contained in:
@@ -620,9 +620,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
return 1
|
||||
|
||||
mob/dead/observer/MayRespawn(var/feedback = 0)
|
||||
if(!client || !mind)
|
||||
if(!client)
|
||||
return 0
|
||||
if(mind.current && mind.current.stat != DEAD)
|
||||
if(mind && mind.current && mind.current.stat != DEAD)
|
||||
if(feedback)
|
||||
src << "<span class='warning'>Your non-dead body prevent you from respawning.</span>"
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user