From 8545b76a00a416cabd85040f0bb7d2fe4336cc3c Mon Sep 17 00:00:00 2001 From: joveeater Date: Thu, 28 Sep 2023 16:14:06 +0100 Subject: [PATCH] Fix monsters attacking across z levels when the wander/scentmove (#3295) --- src/monmove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monmove.cpp b/src/monmove.cpp index f2e96201be3f..f5fdf79e86a1 100644 --- a/src/monmove.cpp +++ b/src/monmove.cpp @@ -955,7 +955,7 @@ void monster::move() bool can_z_move = true; if( candidate.z != posz() ) { - bool can_z_attack = true; + bool can_z_attack = fov_3d; if( !here.valid_move( pos(), candidate, false, true, via_ramp ) ) { // Can't phase through floor can_z_move = false;