Skip to content

Commit

Permalink
Merge pull request #72662 from nornagon/fix-trapavoid
Browse files Browse the repository at this point in the history
fix trapavoid monsters refusing to ever step on traps
  • Loading branch information
Maleclypse authored Mar 28, 2024
2 parents ac793dc + e2380aa commit d050eed
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 @@ -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
Expand Down

0 comments on commit d050eed

Please sign in to comment.