summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-10 20:28:21 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-10 20:28:21 +0000
commit2b7d6cadecf9c3d272cc1097824ffc7d7e770aab (patch)
tree9456a1e06e5f5399ae8eab1140f01d0cbd46204e /crawl-ref/source/spells2.cc
parent1a21d2008a3f9bce922aa7d759b3e1df875ab37a (diff)
downloadcrawl-ref-2b7d6cadecf9c3d272cc1097824ffc7d7e770aab.tar.gz
crawl-ref-2b7d6cadecf9c3d272cc1097824ffc7d7e770aab.zip
Streamlined god-given abilities.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@609 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 3a50f82608..fd03b4a2c7 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -41,6 +41,7 @@
#include "ouch.h"
#include "player.h"
#include "randart.h"
+#include "religion.h"
#include "spells4.h"
#include "spl-cast.h"
#include "stuff.h"
@@ -1539,7 +1540,8 @@ void summon_undead(int pow)
if (!you.is_undead
&& !(you.religion == GOD_KIKUBAAQUDGHA
&& (!player_under_penance()
- && you.piety >= 100 && random2(200) <= you.piety)))
+ && you.piety >= piety_breakpoint(3)
+ && random2(200) <= you.piety)))
{
disease_player( 25 + random2(50) );
}