diff --git a/src/monmove.cpp b/src/monmove.cpp index 6d2e80e78d96e..10a5f081df8ed 100644 --- a/src/monmove.cpp +++ b/src/monmove.cpp @@ -387,7 +387,8 @@ void monster::plan() } } else if( friendly != 0 && !docile ) { for( monster &tmp : g->all_monsters() ) { - if( tmp.friendly == 0 && seen_levels.test( tmp.pos().z + OVERMAP_DEPTH ) ) { + if( tmp.friendly == 0 && tmp.attitude_to( *this ) == Attitude::HOSTILE && + seen_levels.test( tmp.pos().z + OVERMAP_DEPTH ) ) { float rating = rate_target( tmp, dist, smart_planning ); if( rating < dist ) { target = &tmp;