diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-23 21:52:44 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-23 21:52:44 +0000 |
commit | bd7b5f7cce46775dacee51b639e6278780e8dcc0 (patch) | |
tree | c3d75db7c4c1f21b31c2b87530330b2459054db0 /crawl-ref | |
parent | e4a8dcc31b38eaef1dd6ffeb8f857831ec6cbbd5 (diff) | |
download | crawl-ref-bd7b5f7cce46775dacee51b639e6278780e8dcc0.tar.gz crawl-ref-bd7b5f7cce46775dacee51b639e6278780e8dcc0.zip |
Add sanity checks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9811 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/spells1.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 7724d0112f..284cbf92e5 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -777,7 +777,8 @@ static int _healing_spell(int healed, bool divine_ability, mons_pacify(monster); // Give a small piety return. - gain_piety(pgain); + if (pgain > 0) + gain_piety(pgain); } } @@ -805,7 +806,8 @@ static int _healing_spell(int healed, bool divine_ability, "creature."); // Give a small piety return. - gain_piety(pgain); + if (pgain > 0) + gain_piety(pgain); } } |