From 918733b860144e7a9fa285c696a965641bc6d51e Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Mon, 20 May 2024 15:02:55 +0100 Subject: [PATCH] Merge pull request #72662 from nornagon/fix-trapavoid fix trapavoid monsters refusing to ever step on traps --- src/monmove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monmove.cpp b/src/monmove.cpp index 8d493a57c6887..b1b288a27c942 100644 --- a/src/monmove.cpp +++ b/src/monmove.cpp @@ -350,7 +350,7 @@ bool monster::can_reach_to( const tripoint &p ) const bool monster::can_move_to( const tripoint &p ) const { - return can_reach_to( p ) && will_move_to( p ) && know_danger_at( p ); + return can_reach_to( p ) && will_move_to( p ); } float monster::rate_target( Creature &c, float best, bool smart ) const