From e5d9773c543dea310c3152f249a8c67e3d8195e3 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 10 Apr 2008 17:04:36 +0000 Subject: When blessing followers, account for when HP-boosting healing fails. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4177 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index af127e3e35..aa748f35b6 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1190,18 +1190,17 @@ bool bless_follower(monsters* follower, bool vigour = false; if (!healing || coinflip()) - { - blessing_healing(mon, true); - - vigour = true; - } + vigour = blessing_healing(mon, true); if (healing && vigour) result = "healing and extra vigour"; else if (healing) result = "healing"; - else + else if (vigour) result = "extra vigour"; + else + return false; + break; } -- cgit v1.2.3-54-g00ecf