From 858fe74f2614274276be19cf86baf144dd460777 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 10 Apr 2007 17:41:02 +0000 Subject: 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 --- crawl-ref/source/mon-util.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref') 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 -- cgit v1.2.3-54-g00ecf