summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-31 20:51:29 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-31 20:51:29 +0000
commitce67b9fb705bd01f81355363f786a757c0a795c4 (patch)
tree084dd5deb13ef55b77c68183b7a14ca52bbcddeb /crawl-ref/source/decks.cc
parent7faa917855b5bd9497c95c100393f878892aea61 (diff)
downloadcrawl-ref-ce67b9fb705bd01f81355363f786a757c0a795c4.tar.gz
crawl-ref-ce67b9fb705bd01f81355363f786a757c0a795c4.zip
More code cleanups (mainly in transformations.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8867 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index d6e119a473..4e81f130c7 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1845,12 +1845,12 @@ static void _elixir_card(int power, deck_rarity_type rarity)
}
else if (power_level == 1)
{
- you.hp = you.hp_max;
+ set_hp(you.hp_max, false);
you.magic_points = 0;
}
else if (power_level >= 2)
{
- you.hp = you.hp_max;
+ set_hp(you.hp_max, false);
you.magic_points = you.max_magic_points;
}
you.redraw_hit_points = true;