Merge pull request #8928 from Fox-McCloud/cryo-ghost-fix

Fixes Cryo Ghosting
This commit is contained in:
tigercat2000
2018-04-26 04:35:03 -07:00
committed by GitHub
2 changed files with 5 additions and 6 deletions
+5 -5
View File
@@ -229,18 +229,18 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/verb/reenter_corpse()
set category = "Ghost"
set name = "Re-enter Corpse"
if(!client) return
if(!can_reenter_corpse)
to_chat(src, "<span class='warning'>You've given up your right to respawn!</span>")
if(!client)
return
if(!(mind && mind.current && can_reenter_corpse))
if(!mind || QDELETED(mind.current))
to_chat(src, "<span class='warning'>You have no body.</span>")
return
if(!can_reenter_corpse)
to_chat(src, "<span class='warning'>You cannot re-enter your body.</span>")
return
if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients
to_chat(usr, "<span class='warning'>Another consciousness is in your body...It is resisting you.</span>")
return
mind.current.ajourn=0
mind.current.key = key
var/obj/structure/morgue/Morgue = locate() in mind.current.loc
-1
View File
@@ -46,7 +46,6 @@
var/gen_record = ""
var/blinded = null
var/bhunger = 0 //Carbon
var/ajourn = 0
var/lying = 0
var/lying_prev = 0
var/canmove = 1