Ghost orbits: fixes an edge case with ghost animation on orbit exit

This commit is contained in:
MrStonedOne
2015-10-02 09:36:41 -07:00
parent d57e5aa284
commit 96f9df96bb
+1 -1
View File
@@ -222,9 +222,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/orbit()
..()
//restart our floating animation after orbit is done.
pixel_y = 0
sleep 2 //orbit sets up a 2ds animation when it finishes, so we wait for that to end
if (!orbiting) //make sure another orbit hasn't started
pixel_y = 0
animate(src, pixel_y = 2, time = 10, loop = -1)
/mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak