summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-stats.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2013-06-18 00:11:00 +0100
committerChris Campbell <chriscampbell89@gmail.com>2013-06-18 00:11:00 +0100
commita74c840a97bdbeeca679e2655ae62c4cab35ae1a (patch)
tree93bd3d2612480c1967881cc476fdf941759c0f3b /crawl-ref/source/player-stats.cc
parent73abbcd7535420a7c06cd7a347ebec4e60419526 (diff)
downloadcrawl-ref-a74c840a97bdbeeca679e2655ae62c4cab35ae1a.tar.gz
crawl-ref-a74c840a97bdbeeca679e2655ae62c4cab35ae1a.zip
Don't deal stat loss damage when first hitting zero
Intended it to only occur on subsequent draining and accidentally changed that when fixing it.
Diffstat (limited to 'crawl-ref/source/player-stats.cc')
-rw-r--r--crawl-ref/source/player-stats.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player-stats.cc b/crawl-ref/source/player-stats.cc
index 2688f703fd..637a4eb160 100644
--- a/crawl-ref/source/player-stats.cc
+++ b/crawl-ref/source/player-stats.cc
@@ -535,12 +535,12 @@ bool lose_stat(stat_type which_stat, int stat_loss, bool force,
{
you.stat_loss[which_stat] = min<int>(100,
you.stat_loss[which_stat] + stat_loss);
- _handle_stat_change(which_stat, cause, see_source);
if (you.stat_zero[which_stat] > 0)
{
mprf(MSGCH_DANGER, "You convulse from lack of %s!", stat_desc(which_stat, SD_NAME));
ouch(5 + random2(you.hp_max / 10), NON_MONSTER, _statloss_killtype(which_stat), cause);
}
+ _handle_stat_change(which_stat, cause, see_source);
return true;
}
else