mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 16:38:22 +01:00
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:
@@ -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."))
|
||||
|
||||
Reference in New Issue
Block a user