summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-22 21:05:16 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-22 21:05:16 +0000
commit6cf13ddd8b090503a2e7c9124e0f4ea13db22084 (patch)
treecbccdc21b17c630d1bef8ee2b228edaff584ed32 /crawl-ref/source/spells1.cc
parent050bda15479caa2b79599e2e0033389694aadbc3 (diff)
downloadcrawl-ref-6cf13ddd8b090503a2e7c9124e0f4ea13db22084.tar.gz
crawl-ref-6cf13ddd8b090503a2e7c9124e0f4ea13db22084.zip
Fix vitalisation chain handling when we lose enough piety to break the
chain. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5181 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 5ba787ae61..16d8d278a2 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -1107,8 +1107,10 @@ stamina_robustness:
lose_piety(loss_amt);
// If there's not enough piety left to vitalise again, turn off
- // vitalisation chaining.
- if (you.piety < piety_breakpoint(1))
+ // vitalisation chaining. Note that, if the piety cost for this
+ // in abl-show.cc::_do_ability() is changed from 2, this needs
+ // to be changed as well.
+ if (you.piety < piety_breakpoint(1) + 2)
need_chain = false;
// Increment the step counter.