diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-10 17:04:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-10 17:04:36 +0000 |
commit | e5d9773c543dea310c3152f249a8c67e3d8195e3 (patch) | |
tree | 8e1bc7fba6bc3959fec50cac7138c30bc1bd23af /crawl-ref/source/religion.cc | |
parent | 95ce531af9061f57ed7a637c6c66e2737ac9abc5 (diff) | |
download | crawl-ref-e5d9773c543dea310c3152f249a8c67e3d8195e3.tar.gz crawl-ref-e5d9773c543dea310c3152f249a8c67e3d8195e3.zip |
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
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 11 |
1 files changed, 5 insertions, 6 deletions
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; } |