summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 34ae3129c9..e05e686682 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1731,7 +1731,7 @@ static bool _do_ability(const ability_def& abil)
// Move permanent hp/mp loss from leaving to entering the Abyss. (jpeg)
const int maxloss = std::max(2, div_rand_round(you.hp_max, 30));
// Lose permanent HP
- you.hp_max -= random_range(1, maxloss);
+ dec_max_hp(random_range(1, maxloss));
// Paranoia.
if (you.hp_max < 1)
@@ -1742,6 +1742,7 @@ static bool _do_ability(const ability_def& abil)
// Lose 1d2 permanent MP
rot_mp(coinflip() ? 2 : 1);
+
// Deflate MP
if (you.magic_points)
set_mp(random2(you.magic_points), false);