Fixed being unable to aghost while corpselocked (#87594)

## About The Pull Request

Fixed being unable to aghost while corpselocked, via adding another
parameter to ghostize that checks if it's an aghost or not

## Why It's Good For The Game

i wana leave my body when testing as ethereal

## Changelog

🆑
fix: Fixed being unable to aghost while corpselocked
/🆑
This commit is contained in:
carlarctg
2024-11-01 13:22:25 +01:00
committed by GitHub
parent 61aeacc39c
commit 55a07d99b8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ ADMIN_VERB(admin_ghost, R_ADMIN, "AGhost", "Become a ghost without DNR.", ADMIN_
log_admin("[key_name(user)] admin ghosted.")
message_admins("[key_name_admin(user)] admin ghosted.")
var/mob/body = user.mob
body.ghostize(TRUE)
body.ghostize(TRUE, TRUE)
user.init_verbs()
if(body && !body.key)
body.key = "@[user.key]" //Haaaaaaaack. But the people have spoken. If it breaks; blame adminbus