diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-24 03:13:10 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-24 03:19:36 -0800 |
commit | 66206d9c371f8fafcd8e5e35cbd6da6d3cf9b93a (patch) | |
tree | 782559b53142042e0a6d1ef13d9f5c2182de2f13 /crawl-ref/source/ouch.cc | |
parent | ca996d2ca6059e9ce53b54f620bc70cdf31df3f5 (diff) | |
download | crawl-ref-66206d9c371f8fafcd8e5e35cbd6da6d3cf9b93a.tar.gz crawl-ref-66206d9c371f8fafcd8e5e35cbd6da6d3cf9b93a.zip |
you.never_die: restore stat on stat-death
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 6 |
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 |