mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Spirit realm ghosts can't observe (#90556)
This commit is contained in:
committed by
Shadow-Quill
parent
969b685266
commit
0babfe8098
@@ -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)
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user