diff options
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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, ""); |