Fixes AI eye being unable to traverse Z-levels (#21708)

## About PR

Fixes a bug introduced in #21626. I misunderstood the purpose of a check
which was allowing eyeobjects to Z-travel, my bad!

- Fixes #21695
This commit is contained in:
Kano
2026-01-14 17:01:07 +00:00
committed by GitHub
parent 71c8c64667
commit ba07ebeb30
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -31,6 +31,11 @@
* FALSE otherwise.
*/
/mob/proc/zMove(direction)
// If the calling mob has an active eyeobj reference, we move it instead.
// This is important because zMove is called from the actual mob and not the eyeobj they're controlling.
if(eyeobj)
return eyeobj.zMove(direction)
// Check if we can actually travel a Z-level.
if (!can_ztravel(direction))
to_chat(src, SPAN_WARNING("You lack means of travel in that direction."))