summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index b55698383d..0eff2a9b85 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -3660,10 +3660,10 @@ bool mon_enemies_around(const monsters *monster)
if (monster->foe != MHITNOT && monster->foe != MHITYOU)
return (true);
- if (mons_friendly(monster))
+ if (mons_wont_attack(monster))
{
- // Additionally, if an ally is nearby and *you* have a foe, consider
- // it as the ally's enemy too.
+ // Additionally, if an ally is nearby and *you* have a foe,
+ // consider it as the ally's enemy too.
return (mons_near(monster) && !i_feel_safe());
}
else