diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 83b0616aeaf..5e6bd3cba1b 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -179,6 +179,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/dead/observer/Move(NewLoc, direct) + following = null dir = direct if(NewLoc) loc = NewLoc @@ -306,6 +307,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp usr << "No area available." usr.loc = pick(L) + following = null /mob/dead/observer/verb/follow() set category = "Ghost" @@ -325,18 +327,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp following = target src << "\blue Now following [target]" spawn(0) - var/turf/pos = get_turf(src) - while(loc == pos && target && following == target && client) + while(target && following == target && client) var/turf/T = get_turf(target) if(!T) break // To stop the ghost flickering. if(loc != T) loc = T - pos = loc sleep(15) - following = null - /mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak set category = "Ghost" @@ -361,6 +359,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(T && isturf(T)) //Make sure the turf exists, then move the source to that destination. A.loc = T + following = null else A << "This mob is not located in the game world." /*