fixes a to_chat runtime (#22646)

This commit is contained in:
GDN
2023-09-30 12:58:37 +01:00
committed by GitHub
parent d1d27ae5fa
commit 97debc25b2
@@ -320,7 +320,7 @@ GLOBAL_LIST_EMPTY(antagonists)
if(!length(candidates))
return FALSE
var/mob/dead/observer/C = pick(candidates)
to_chat(owner, "Your mob has been taken over by a ghost! Appeal your job ban if you want to avoid this in the future!")
to_chat(owner.current, "Your mob has been taken over by a ghost! Appeal your job ban if you want to avoid this in the future!")
message_admins("[key_name_admin(C)] has taken control of ([key_name_admin(owner.current)]) to replace a jobbaned player.")
owner.current.ghostize(FALSE)
owner.current.key = C.key