summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 47eda3c4ab..5b965b3d72 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -1944,8 +1944,8 @@ void cast_divine_shield()
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.set_duration(DUR_DIVINE_SHIELD,
+ 35 + (you.skills[SK_INVOCATIONS] * 4) / 3);
// shield bonus up to 8
you.attribute[ATTR_DIVINE_SHIELD] = 3 + you.skills[SK_SHIELDS]/5;