summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-15 17:27:56 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-15 17:27:56 +0000
commit05639282ce062372a7cf5148944ebf51d094607e (patch)
treee092604a7ce28340c08d89ce32a47b4319aa4931 /crawl-ref/source/spells4.cc
parent3db54885807c97d3ea243405c1f31ae8435d2346 (diff)
downloadcrawl-ref-05639282ce062372a7cf5148944ebf51d094607e.tar.gz
crawl-ref-05639282ce062372a7cf5148944ebf51d094607e.zip
Add still more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9773 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 2fff80569c..dc9d778111 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -1875,9 +1875,7 @@ void remove_divine_shield()
// recasting simply resets those two values (to better values, presumably)
void cast_divine_shield()
{
- if (you.duration[DUR_DIVINE_SHIELD])
- mpr("Your divine shield is renewed.");
- else
+ if (!you.duration[DUR_DIVINE_SHIELD])
{
if (you.shield()
|| you.duration[DUR_FIRE_SHIELD]
@@ -1889,11 +1887,14 @@ void cast_divine_shield()
else
mpr("A divine shield forms around you!");
}
+ else
+ mpr("Your divine shield is renewed.");
+
you.redraw_armour_class = true;
// duration of complete shield bonus from 35 to 80 turns
- you.duration[DUR_DIVINE_SHIELD]
- = 35 + (you.skills[SK_SHIELDS] + you.skills[SK_INVOCATIONS]*4)/3;
+ you.duration[DUR_DIVINE_SHIELD] =
+ 35 + (you.skills[SK_SHIELDS] + you.skills[SK_INVOCATIONS]*4)/3;
// shield bonus up to 8
you.attribute[ATTR_DIVINE_SHIELD] = 3 + you.skills[SK_SHIELDS]/5;