Spirit realm ghosts can't observe (#90556)

This commit is contained in:
John Willard
2025-04-29 17:52:31 -06:00
committed by Shadow-Quill
parent 969b685266
commit 0babfe8098
7 changed files with 24 additions and 14 deletions
+4 -1
View File
@@ -920,7 +920,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set name = "Observe"
set category = "Ghost"
if(!isobserver(usr)) //Make sure they're an observer!
if(!isobserver(usr) || HAS_TRAIT(src, TRAIT_NO_OBSERVE)) //Make sure they're an observer!
return
reset_perspective(null)
@@ -959,6 +959,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
this is a bug (and a past exploit) and should be investigated.")
return
if(HAS_TRAIT(src, TRAIT_NO_OBSERVE))
return
//Istype so we filter out points of interest that are not mobs
if(client && mob_eye && istype(mob_eye))
client.set_eye(mob_eye)
+1
View File
@@ -147,6 +147,7 @@ GLOBAL_DATUM_INIT(orbit_menu, /datum/orbit_menu, new)
"ghosts" = ghosts,
"misc" = misc,
"npcs" = npcs,
"can_observe" = !HAS_TRAIT(user, TRAIT_NO_OBSERVE),
)