From 66206d9c371f8fafcd8e5e35cbd6da6d3cf9b93a Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Tue, 24 Nov 2009 03:13:10 -0800 Subject: you.never_die: restore stat on stat-death --- crawl-ref/source/ouch.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/ouch.cc') 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 -- cgit v1.2.3-54-g00ecf