Cleans up observer mind on control transfer, ghosting, DNR, suicide (#47826)

* Fixes admin ghost drag

* Covers more cases

* And assume control
This commit is contained in:
skoglol
2019-11-18 17:59:47 +00:00
committed by Emmett Gaines
parent 0d32c6dad1
commit ad0d270d58
4 changed files with 25 additions and 14 deletions
+1 -2
View File
@@ -235,8 +235,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
if(alert("This mob is being controlled by [M.key]. Are you sure you wish to assume control of it? [M.key] will be made a ghost.",,"Yes","No") != "Yes")
return
else
var/mob/dead/observer/ghost = new/mob/dead/observer(M,1)
ghost.ckey = M.ckey
M.ghostize(FALSE)
message_admins("<span class='adminnotice'>[key_name_admin(usr)] assumed direct control of [M].</span>")
log_admin("[key_name(usr)] assumed direct control of [M].")
var/mob/adminmob = src.mob