summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 15:13:08 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:46 -0500
commitf3181091e894c233e5490366233acab45ab6144b (patch)
tree4d7d07ee2623c1143b95f6d9b44bf9a91607b843 /crawl-ref/source/spells4.cc
parent0da3322c570c3e94859b94fe3bc747c01d1e1364 (diff)
downloadcrawl-ref-f3181091e894c233e5490366233acab45ab6144b.tar.gz
crawl-ref-f3181091e894c233e5490366233acab45ab6144b.zip
Convert several more durations
Change over durations for magic shield (this is from the helm card), TSO's divine shield, paralysis, and petrification.
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;