summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
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,