summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 649c516bf0..21e67164f8 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -366,12 +366,8 @@ bool brand_weapon(brand_type which_brand, int power)
else
mprf("%s flashes.", weapon.name(DESC_CAP_YOUR).c_str());
- const int dur_change = duration_affected + roll_dice(2, power);
-
- you.duration[DUR_WEAPON_BRAND] += dur_change * BASELINE_DELAY;
-
- if (you.duration[DUR_WEAPON_BRAND] > 50 * BASELINE_DELAY)
- you.duration[DUR_WEAPON_BRAND] = 50 * BASELINE_DELAY;
+ you.increase_duration(DUR_WEAPON_BRAND,
+ duration_affected + roll_dice(2, power), 50);
return (true);
}