From 0fb28d6c1b82e6c10e00c4cc9b946eb010d65017 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 6 Oct 2008 02:51:44 +0000 Subject: Expand handling of monster intelligence and zombifiability to work on the level of individual monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7148 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells2.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index d14b52057c..9935e216f8 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -211,10 +211,10 @@ int detect_creatures( int pow, bool telepathic ) // Assuming that highly intelligent spellcasters can // detect scrying. -- bwr - if (mons_intel( mon->type ) == I_HIGH - && mons_class_flag( mon->type, M_SPELLCASTER )) + if (mons_intel(mon) == I_HIGH + && mons_class_flag(mon->type, M_SPELLCASTER)) { - behaviour_event( mon, ME_DISTURB, MHITYOU, you.pos() ); + behaviour_event(mon, ME_DISTURB, MHITYOU, you.pos()); } } } -- cgit v1.2.3-54-g00ecf