and don't reset HP to max HP.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8683 c06c8d41-db1a-0410-9941-cceddc491573
5VUJ4K2LSY35LKIKRCY7YIQP4GK6AYOZ5QUL6G4NSO5DIX2Z2XSQC
27JI3J23EXDY2G4X7NHTFTSHSEUDGDPFOYPG6P53UNSSJP3DDQTAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
XCEZ7OA2INNPSYNAB5U6JB7XNDAD5BKU26YLFPPZ3SEESFZKADQAC
XIXBLWIVUPWM3P6XQIB7CS45JOOIYE6OBYYYERCFAYYO4VOWOYUQC
K6S3LX4GPSVHOVIZVVGJDOMT6GXENOTXD6FM3ZHBN5GO4JA5E6YAC
UXSDC436UFNF7B4DEI72NUKAUPB3M4GFAZR3GMW7D2R72KIB6P6AC
}
}
static void _wizard_restore_life()
{
if (you.hp <= 0)
set_hp(you.hp_max, false);
if (you.strength <= 0)
{
you.strength = you.max_strength;
you.redraw_strength = true;
}
if (you.dex <= 0)
{
you.dex = you.max_dex;
you.redraw_dexterity = true;
you.redraw_evasion = true;
}
if (you.intel <= 0)
{
you.intel = you.max_intel;
you.redraw_intelligence = true;