diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2013-06-18 00:11:00 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2013-06-18 00:11:00 +0100 |
commit | a74c840a97bdbeeca679e2655ae62c4cab35ae1a (patch) | |
tree | 93bd3d2612480c1967881cc476fdf941759c0f3b /crawl-ref/source/player-stats.cc | |
parent | 73abbcd7535420a7c06cd7a347ebec4e60419526 (diff) | |
download | crawl-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.cc | 2 |
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 |