better handling

This commit is contained in:
Fox-McCloud
2016-06-29 11:08:51 -04:00
parent 3f31744255
commit d61583dd1f
3 changed files with 22 additions and 12 deletions
+13
View File
@@ -1516,6 +1516,19 @@
spell.action.Grant(new_character)
return
/datum/mind/proc/get_ghost(even_if_they_cant_reenter)
for(var/mob/dead/observer/G in dead_mob_list)
if(G.mind == src)
if(G.can_reenter_corpse || even_if_they_cant_reenter)
return G
break
/datum/mind/proc/grab_ghost(force)
var/mob/dead/observer/G = get_ghost(even_if_they_cant_reenter = force)
. = G
if(G)
G.reenter_corpse()
//Initialisation procs
/mob/proc/mind_initialize()
if(mind)