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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 4698c7f506..c1e89e923d 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -1140,8 +1140,8 @@ void ouch(int dam, int death_source, kill_method_type death_type,
#if WIZARD || DEBUG
if (you.never_die)
{
- mpr("you.never_die set to true, avoiding death",
- MSGCH_DIAGNOSTICS);
+ if (you.hp <= 0)
+ you.hp = you.hp_max;
return;
}
#endif