diff options
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 02cecb0ab9..e098c3efd0 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -615,10 +615,12 @@ static bool _mons_check_foe(monsters *mon, const coord_def& p, if (!in_bounds(p)) return (false); - if (!friendly && !neutral && p == you.pos() - && you.visible_to(mon) && !is_sanctuary(p)) + if (p == you.pos()) { - return (true); + // The player: We don't return true here because + // otherwise wandering monsters will always + // attack the player. + return (false); } if (monsters *foe = monster_at(p)) |