summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 8595bd08dd..c409c54df7 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1802,7 +1802,8 @@ bool ms_requires_tracer(spell_type monspell)
bool ms_direct_nasty(spell_type monspell)
{
- return (spell_needs_foe(monspell));
+ return (spell_needs_foe(monspell)
+ && !(get_spell_flags(monspell) & SPTYP_SUMMONING));
}
// Spells a monster may want to cast if fleeing from the player, and