From bf8a801d9caa0ed85c2d6a4d32ced96edf27f063 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 21 Nov 2008 06:16:01 +0000 Subject: 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 --- crawl-ref/source/spells1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells1.cc') 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, -- cgit v1.2.3-54-g00ecf