summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 98a1f3e853..5120688038 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -628,6 +628,7 @@ static bool _mons_check_foe(monsters *mon, const coord_def& p,
{
if (foe != mon
&& mon->can_see(foe)
+ && !mons_is_projectile(foe->type)
&& (friendly || !is_sanctuary(p))
&& (foe->friendly() != friendly
|| (neutral && !foe->neutral())))