Prevents players from voluntarily ghosting when adminfrozen (#18620)

* nope

* Update code/modules/mob/dead/observer/observer.dm

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
S34N
2022-07-30 12:15:11 +01:00
committed by GitHub
co-authored by AffectedArc07
parent fe1d30fd2f
commit a24c1c4299
@@ -193,6 +193,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/warningmsg = null
var/obj/machinery/cryopod/P = istype(loc, /obj/machinery/cryopod) && loc
if(frozen)
to_chat(src, "<span class='warning'>You cannot do this while admin frozen.</span>")
message_admins("[key_name_admin(src)] tried to ghost while admin frozen")
return
if(P)
if(TOO_EARLY_TO_GHOST)
warningmsg = "It's too early in the shift to enter cryo"