summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-13 19:21:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-13 19:21:04 +0000
commita95a50ff252b0e1525248adae50c2c979ed0bb18 (patch)
treef22e498cb1803263c6f444c740c9d1fc231caa7e /crawl-ref/source/spells2.cc
parent40dd030218f9e44226230dfd532a3d41483f07ba (diff)
downloadcrawl-ref-a95a50ff252b0e1525248adae50c2c979ed0bb18.tar.gz
crawl-ref-a95a50ff252b0e1525248adae50c2c979ed0bb18.zip
Revert r9430, as Yred's Drain Life ability has a minimum gain of 3
(which, when divided by 2, is always at least 1). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9431 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 19399d3c7c..72cf0a8836 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -706,7 +706,7 @@ void drain_life(int pow)
}
}
- hp_gain = hp_gain / 2 + 1;
+ hp_gain = hp_gain / 2;
hp_gain = std::min(pow * 2, hp_gain);
@@ -776,7 +776,7 @@ bool vampiric_drain(int pow, const dist &vmove)
if (monster->alive())
print_wounds(monster);
- inc_hp(inflicted / 2 + 1, false);
+ inc_hp(inflicted / 2, false);
}
return (success);