summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-21 06:16:01 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-21 06:16:01 +0000
commitbf8a801d9caa0ed85c2d6a4d32ced96edf27f063 (patch)
treeded0a36baf0a12e27fbd46eacd90daaea8a86ef9 /crawl-ref/source/spells1.cc
parentf382ac5fc0137d0a2a58be30a893dfa9aa2723bd (diff)
downloadcrawl-ref-bf8a801d9caa0ed85c2d6a4d32ced96edf27f063.tar.gz
crawl-ref-bf8a801d9caa0ed85c2d6a4d32ced96edf27f063.zip
Tweak Ely's healing to have a chance of successfully pacifying monsters
even when the player has no Invocations skill. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7523 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 706ca7e1d1..602d459595 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -677,8 +677,8 @@ static bool _can_pacify_monster(const monsters *mon, const int healed)
else if (holiness == MH_DEMONIC)
divisor += 2;
- const int random_factor = random2(you.skills[SK_INVOCATIONS] * healed /
- divisor);
+ const int random_factor = random2((you.skills[SK_INVOCATIONS] + 1) *
+ healed / divisor);
#ifdef DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS,