summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-07 03:21:35 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-07 03:21:35 +0000
commit638cb3ff6c0370a8b4ab3524b2e905ae6269e329 (patch)
treee734252d0dd6b5761b3032f3fce9b01482b0f2e5
parent2c2920fc5268ecf080fa262c125ca683492a4982 (diff)
downloadcrawl-ref-638cb3ff6c0370a8b4ab3524b2e905ae6269e329.tar.gz
crawl-ref-638cb3ff6c0370a8b4ab3524b2e905ae6269e329.zip
Use MAX_PIETY properly when making Kiku shield you from necromancy
miscasts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5519 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 695737e3b1..a5c9679dac 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1805,7 +1805,7 @@ void summon_undead(int pow)
&& !(you.religion == GOD_KIKUBAAQUDGHA
&& (!player_under_penance()
&& you.piety >= piety_breakpoint(3)
- && random2(200) <= you.piety)))
+ && you.piety > random2(MAX_PIETY))))
{
disease_player( 25 + random2(50) );
}