Skip to content

Commit

Permalink
fix bashable furnitures not bashable by monsters (#1900)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoCottret authored Sep 29, 2022
1 parent f51fe6a commit 9d078ef
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 @@ -1361,7 +1361,7 @@ bool monster::bash_at( const tripoint &p )
}

bool flat_ground = g->m.has_flag( "ROAD", p ) || g->m.has_flag( "FLAT", p );
if( flat_ground ) {
if( flat_ground && !g->m.is_bashable_furn( p ) ) {
bool can_bash_ter = g->m.is_bashable_ter( p );
bool try_bash_ter = one_in( 50 );
if( !( can_bash_ter && try_bash_ter ) ) {
Expand Down

0 comments on commit 9d078ef

Please sign in to comment.