summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index c1e89e923d..2565f85d13 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -1142,6 +1142,12 @@ void ouch(int dam, int death_source, kill_method_type death_type,
{
if (you.hp <= 0)
you.hp = you.hp_max;
+ if (you.strength <= 0)
+ you.strength = you.max_strength;
+ if (you.dex <= 0)
+ you.dex = you.max_dex;
+ if (you.intel <= 0)
+ you.intel = you.max_intel;
return;
}
#endif