summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-10 17:41:02 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-10 17:41:02 +0000
commit858fe74f2614274276be19cf86baf144dd460777 (patch)
tree10d881f7268217e3b8148e8503b7b58a5405de03 /crawl-ref/source/mon-util.cc
parent5cc23b45f0c5afe8f8f73e7b5e14695cb168c021 (diff)
downloadcrawl-ref-858fe74f2614274276be19cf86baf144dd460777.tar.gz
crawl-ref-858fe74f2614274276be19cf86baf144dd460777.zip
Oops, friendlies were never summoning, fixed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1284 c06c8d41-db1a-0410-9941-cceddc491573
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