Saner FLW links. (#29852)

This commit is contained in:
Charlie Nolan
2025-07-25 23:16:20 -07:00
committed by GitHub
parent 0332d0dbfd
commit b475431187
2 changed files with 12 additions and 8 deletions
+10 -6
View File
@@ -1722,20 +1722,24 @@
show_player_panel(M)
else if(href_list["adminplayerobservefollow"])
if(isnewplayer(usr))
to_chat(usr, "<span class='warning'>You cannot follow anyone from the lobby!</span>")
return
var/client/C = usr.client
if(!isobserver(usr))
if(!check_rights(R_ADMIN|R_MOD)) // Need to be mod or admin to aghost
if(!check_rights(R_ADMIN|R_MOD, show_msg=FALSE)) // Need to be mod or admin to aghost
to_chat(usr, "<span class='warning'>You must be an observer to follow someone!</span>")
return
C.admin_ghost()
var/mob/M = locateUID(href_list["adminplayerobservefollow"])
if(!ismob(M))
var/mob/target = locateUID(href_list["adminplayerobservefollow"])
if(!ismob(target))
to_chat(usr, "<span class='warning'>This can only be used on instances of type /mob</span>")
return
var/mob/dead/observer/A = C.mob
sleep(2)
A.ManualFollow(M)
var/mob/dead/observer/ghost = C.mob
ghost.ManualFollow(target)
else if(href_list["check_antagonist"])
check_antagonists()