diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-23 18:23:19 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-23 18:23:19 +0000 |
commit | 549d9a53c2f7e7c08f717de066ee56efe0b67fb4 (patch) | |
tree | 865084ed8969826530c08288b2b9e644fdb242a0 /crawl-ref/source/delay.cc | |
parent | 216ea74607c26d1706b43aa8fccb11e553a962e8 (diff) | |
download | crawl-ref-549d9a53c2f7e7c08f717de066ee56efe0b67fb4.tar.gz crawl-ref-549d9a53c2f7e7c08f717de066ee56efe0b67fb4.zip |
When pacifying, check holiness in the right places.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6086 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 2755730b45..66b3c95ef1 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -61,7 +61,13 @@ static void _finish_delay(const delay_queue_item &delay); // note that berserk monsters are also hasted.) static bool _recite_mons_useless(const monsters *mon) { + const mon_holy_type holiness = mons_holiness(mon); + return (mons_intel(mon->type) < I_NORMAL + || holiness != MH_HOLY + || holiness != MH_NATURAL + || holiness != MH_UNDEAD + || holiness != MH_DEMONIC || mons_is_stationary(mon) || mons_is_fleeing(mon) || mons_is_sleeping(mon) @@ -103,8 +109,6 @@ static int _recite_to_monsters(int x, int y, int pow, int unused) pow -= 2 + random2(3); else if (holiness == MH_DEMONIC) pow -= 3 + random2(5); - else if (holiness != MH_NATURAL) - return (0); } pow -= resist; |