Skip to content

Commit

Permalink
Fix monsters attacking across z levels when the wander/scentmove (cat…
Browse files Browse the repository at this point in the history
  • Loading branch information
joveeater authored Sep 28, 2023
1 parent 8e6dd60 commit 8545b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8545b76

Please sign in to comment.