More MayRespawn checks.

Astral projecting wizards/cultists may no longer respawn as something else.
This commit is contained in:
PsiOmegaDelta
2015-06-02 13:40:53 +02:00
parent 26167895b5
commit 4a69d0a4f7

View File

@@ -620,6 +620,12 @@ 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)
return 0
if(mind.current && mind.current.stat != DEAD)
if(feedback)
src << "<span class='warning'>Your non-dead body prevent you from respawning.</span>"
return 0
if(config.antag_hud_restricted && has_enabled_antagHUD == 1)
if(feedback)
src << "<span class='warning'>antagHUD restrictions prevent you from respawning.</span>"