Saving grace stops multi-turn actions, sleeping, and fainting

This commit is contained in:
Pasi Kallinen
2023-10-29 18:01:28 +02:00
parent 351a1eb9d5
commit 03ee609ca0

View File

@@ -3801,6 +3801,11 @@ saving_grace(int dmg)
&& (u.uhp * 100 / u.uhpmax) > 90) {
dmg = u.uhp - 1;
u.usaving_grace = TRUE; /* used up */
end_running(TRUE);
if (u.usleep)
unmul("Suddenly you wake up!");
if (is_fainted())
reset_faint();
}
return dmg;
}