[FIX] Mobs that were offered up to ghosts no longer get taken over by their old owners (#26650)

* Grab_ghost now checks the ckey of the mind

* Remove superfluous loops for getting ghosts.

* Early return for MMI

---------

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
Adrer
2024-09-16 14:39:54 +00:00
committed by GitHub
co-authored by adrermail@gmail.com <adrermail@gmail.com>
parent 98912fcea9
commit 8d82546d9d
7 changed files with 17 additions and 39 deletions
+1 -8
View File
@@ -59,14 +59,7 @@
. += "You can feel a bright spark of life in this one!"
return
if(brainmob?.mind)
var/foundghost = FALSE
for(var/mob/dead/observer/G in GLOB.player_list)
if(G.mind == brainmob.mind)
foundghost = TRUE
if(!G.can_reenter_corpse)
foundghost = FALSE
break
if(foundghost)
if(brainmob.get_ghost())
. += "You can feel the small spark of life still left in this one."
return