Spirit realm ghosts can't observe (#90556)

This commit is contained in:
John Willard
2025-04-14 23:31:12 -04:00
committed by GitHub
parent 86453d7110
commit 0a49e07859
7 changed files with 24 additions and 14 deletions
+4 -1
View File
@@ -902,7 +902,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)
@@ -941,6 +941,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),
)