ghosts can point again (#20617)

This commit is contained in:
Contrabang
2023-03-26 06:58:38 -04:00
committed by GitHub
parent c7bcb48093
commit b5f3b7442b
2 changed files with 13 additions and 4 deletions
@@ -734,10 +734,15 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/run_pointed(atom/A as mob|obj|turf in view())
if(!..())
return FALSE
var/follow_link
if(invisibility) // Only show the button if the ghost is not visible to the living
follow_link = " ([ghost_follow_link(A, src)])"
usr.visible_message("<span class='deadsay'><b>[src]</b> points to [A][follow_link].</span>")
for(var/mob/M in range(7, src))
if(M.see_invisible < invisibility)
continue //can't view the invisible
var/follow_link
if(invisibility) // Only show the button if the ghost is not visible to the living
follow_link = " ([ghost_follow_link(A, M)])" // Ghost needs to be link clicker, otherwise it breaks
M.show_message("<span class='deadsay'><b>[src]</b> points to [A][follow_link].</span>", EMOTE_VISIBLE)
return TRUE
/mob/dead/observer/proc/incarnate_ghost()