Fixes tempbody taking aghosted bodies (#95996)

## About The Pull Request

If you're an adminghosted body, you will no longer be sent back to your
corpse afterwards. The Mind will still move over, but you wont
immediately re-enter your body.

Just as an example, an Admin is aghosted on Centcom after testing some
stuff, plays a round of Mafia, then is suddenly back in their body in
Centcom.

Also fixes temp body not working for Mafia (due to the corpse locking)

## Why It's Good For The Game

You're going to the THUNDERDOME.

## Changelog

🆑
fix: Mafia players now get sent back to their bodies again post-game.
admin: Admin players aren't forcefully put back into aghosted bodies
after using a temporary body spawner.
/🆑
This commit is contained in:
John Willard
2026-05-20 18:15:17 +02:00
committed by GitHub
parent 960d0a7278
commit 3ea6c1ddea
4 changed files with 17 additions and 12 deletions
@@ -227,9 +227,9 @@
return
ghostize(TRUE)
/mob/eye/imaginary_friend/hivemind/ghostize(can_reenter_corpse, admin_ghost)
/mob/eye/imaginary_friend/hivemind/ghostize(can_reenter_corpse, forced)
. = ..()
if(admin_ghost)
if(forced)
return
alert_hivemind("You sense the presence of [real_name] disappear from the hivemind.")