summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/main.cc4
-rw-r--r--crawl-ref/source/spells1.cc9
2 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc
index 559d377f74..f23df365f4 100644
--- a/crawl-ref/source/main.cc
+++ b/crawl-ref/source/main.cc
@@ -2671,8 +2671,8 @@ static void _decrement_durations()
if (_decrement_a_duration(DUR_DIVINE_STAMINA, delay))
remove_divine_stamina();
- _decrement_a_duration(DUR_REPEL_STAIRS_MOVE, delay);
- _decrement_a_duration(DUR_REPEL_STAIRS_CLIMB, delay);
+ _decrement_a_duration(DUR_REPEL_STAIRS_MOVE, 1);
+ _decrement_a_duration(DUR_REPEL_STAIRS_CLIMB, 1);
}
static void _check_banished()
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index c571f12e32..370427be29 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -919,8 +919,9 @@ bool cast_divine_vigour()
const int old_hp_max = you.hp_max;
const int old_mp_max = you.max_magic_points;
you.attribute[ATTR_DIVINE_VIGOUR] = vigour_amt;
- you.duration[DUR_DIVINE_VIGOUR]
- = 40 + (you.skills[SK_INVOCATIONS]*5)/2;
+ you.set_duration(DUR_DIVINE_VIGOUR,
+ 40 + (you.skills[SK_INVOCATIONS*5])/2);
+
calc_hp();
inc_hp(you.hp_max - old_hp_max, false);
calc_mp();
@@ -1021,8 +1022,8 @@ bool cast_vitalisation()
const int stamina_amt = 3;
you.attribute[ATTR_DIVINE_STAMINA] = stamina_amt;
- you.duration[DUR_DIVINE_STAMINA]
- = 40 + (you.skills[SK_INVOCATIONS]*5)/2;
+ you.set_duration(DUR_DIVINE_STAMINA,
+ 40 + (you.skills[SK_INVOCATIONS]*5)/2);
modify_stat(STAT_STRENGTH, stamina_amt, true, "");
modify_stat(STAT_INTELLIGENCE, stamina_amt, true, "");