Merge pull request #9709 from PsiOmegaDelta/150606-GhostSpawn

Fixes #9685.
This commit is contained in:
Zuhayr
2015-06-07 15:06:09 +09:30
+2 -2
View File
@@ -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