Mob ckey sanity check now respects insano aghost code (#91517)

## About The Pull Request

I HATE THIS PLACE DUDE, aghosting sets your ckey/key to your normal
ckey/ckey but with @ prefixed. hhhhhhhhh.
This commit is contained in:
LemonInTheDark
2025-06-15 15:52:38 -04:00
committed by Roxy
parent 6b3432753c
commit d5be02ecee
6 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -259,7 +259,7 @@ Works together with spawning an observer, noted above.
/mob/proc/ghostize(can_reenter_corpse = TRUE, admin_ghost = FALSE)
if(!key)
return
if(key[1] == "@") // Skip aghosts.
if(IS_FAKE_KEY(key)) // Skip aghosts.
return
if(HAS_TRAIT(src, TRAIT_CORPSELOCKED) && !admin_ghost)
@@ -375,7 +375,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!can_reenter_corpse && !mind.has_antag_datum(/datum/antagonist/changeling)) //SKYRAT EDIT
to_chat(src, span_warning("You cannot re-enter your body."))
return
if(mind.current.key && mind.current.key[1] != "@") //makes sure we don't accidentally kick any clients
if(mind.current.key && !IS_FAKE_KEY(mind.current.key)) //makes sure we don't accidentally kick any clients
to_chat(usr, span_warning("Another consciousness is in your body...It is resisting you."))
return
client.view_size.setDefault(getScreenSize(client.prefs.read_preference(/datum/preference/toggle/widescreen)))//Let's reset so people can't become allseeing gods