From db67164e0ffcc0aa6679294f720d39f75016a90a Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Tue, 24 Nov 2009 02:35:46 -0800 Subject: you.never_die tweaks --- crawl-ref/source/ouch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/ouch.cc') 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 -- cgit v1.2.3-54-g00ecf