summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 02:51:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 02:51:44 +0000
commit0fb28d6c1b82e6c10e00c4cc9b946eb010d65017 (patch)
tree1377e3e61587069330bf28359a7a871723a458bf /crawl-ref/source/delay.cc
parent967e9e7bb84c639c1e5065c6a65a05972dbc88c5 (diff)
downloadcrawl-ref-0fb28d6c1b82e6c10e00c4cc9b946eb010d65017.tar.gz
crawl-ref-0fb28d6c1b82e6c10e00c4cc9b946eb010d65017.zip
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
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 7f4d7d0612..45ec98497d 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -62,7 +62,7 @@ static bool _recite_mons_useless(const monsters *mon)
{
const mon_holy_type holiness = mons_holiness(mon);
- return (mons_intel(mon->type) < I_NORMAL
+ return (mons_intel(mon) < I_NORMAL
|| holiness != MH_HOLY
&& holiness != MH_NATURAL
&& holiness != MH_UNDEAD
@@ -1110,7 +1110,7 @@ static void _finish_delay(const delay_queue_item &delay)
"relatives.");
}
else if (you.religion == GOD_ZIN
- && mons_intel(item.plus) >= I_NORMAL)
+ && mons_class_intel(item.plus) >= I_NORMAL)
{
simple_god_message(" expects more respect for this departed "
"soul.");