mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Makes admin ghost drag use ghostize
This commit is contained in:
@@ -876,16 +876,14 @@ proc/kick_clients_in_lobby(var/message, var/kick_only_afk = 0)
|
||||
|
||||
var/question = ""
|
||||
if (tomob.ckey)
|
||||
question = "This mob already has a user ([tomob.ckey]) in control of it! "
|
||||
question = "This mob already has a user ([tomob.key]) in control of it! "
|
||||
question += "Are you sure you want to place [frommob.name]([frommob.key]) in control of [tomob.name]?"
|
||||
|
||||
var/ask = alert(question, "Place ghost in control of mob?", "Yes", "No")
|
||||
if (ask != "Yes")
|
||||
return 1
|
||||
|
||||
if (tomob.ckey)
|
||||
var/mob/dead/observer/ghost = new/mob/dead/observer(tomob,1)
|
||||
ghost.ckey = tomob.ckey
|
||||
ghostize(tomob,0)
|
||||
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(usr)] has put [frommob.ckey] in control of [tomob.name].</span>")
|
||||
log_admin("[key_name(usr)] stuffed [frommob.ckey] into [tomob.name].")
|
||||
|
||||
Reference in New Issue
Block a user