Observer tweaks (#29990)

This commit is contained in:
Contrabang
2025-08-06 05:05:22 +00:00
committed by GitHub
parent 7a0ae57cea
commit 05b5d429d9
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -502,8 +502,11 @@ GLOBAL_LIST_INIT(view_logs_verbs, list(
to_chat(src, "<span class='warning'>You can't observe a ghost.</span>")
return
if(cleanup_admin_observe(mob))
var/mob/dead/observer/observer = mob
if(istype(observer) && target == locateUID(observer.mob_observed))
cleanup_admin_observe(mob)
return
cleanup_admin_observe(mob)
if(isnull(target) || target == src)
// let the default one find the target if there isn't one