[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
+2 -2
View File
@@ -183,8 +183,8 @@
)
busy = TRUE
var/mob/dead/observer/ghost = target.get_ghost(TRUE)
if(ghost?.can_reenter_corpse)
var/mob/dead/observer/ghost = target.get_ghost()
if(ghost)
to_chat(ghost, "<span class='ghostalert'>Your heart is being defibrillated. Return to your body if you want to be revived!</span> (Verbs -> Ghost -> Re-enter corpse)")
window_flash(ghost.client)
SEND_SOUND(ghost, sound('sound/effects/genetics.ogg'))