PatR
b93cfecbaf
fix github issue #1252 - current HP > maximum HP
...
Sanity check failure generated by running the fuzzer, reported
by mkuoppal. The check discovered that the hero's current hit
points were greater than the maximum.
Comments by elunna pointed out where the problem most likely was,
and this attempts to fix the situation, but without a test case
I can't be sure that the fix works.
Both cases being fixed are for formerly fatal incidents (random
chance that poison is fatal, monster touch of death spell) being
'softened' to heavy HP damage (including reduction of maxHP).
The earlier commit I made (045d608 ) was done without having seen
the relevant comments. It didn't fix anything but did attempt
to make finding the problem(s) easier. It wasn't much help.
Fixes #1252
2024-09-12 12:16:40 -07:00
..
2022-02-04 09:41:30 -05:00
2024-03-09 15:16:24 -05:00
2024-09-05 13:12:11 -07:00
2024-03-14 17:41:51 -04:00
2024-09-05 13:12:11 -07:00
2024-09-05 13:12:11 -07:00
2024-09-12 12:16:40 -07:00
2024-09-05 13:12:11 -07:00
2024-09-05 13:12:11 -07:00
2024-09-05 13:12:11 -07:00
2024-06-10 10:57:59 -04:00
2024-09-05 14:51:21 -07:00
2024-04-13 13:06:38 -04:00
2024-06-19 12:28:13 -04:00
2024-09-05 13:12:11 -07:00
2024-08-31 14:08:04 -07:00
2024-08-29 14:08:23 -07:00
2024-09-05 13:12:11 -07:00
2024-09-05 13:12:11 -07:00
2024-03-16 09:38:21 -04:00
2024-07-26 14:53:33 -07:00
2024-07-13 16:31:35 -04:00
2024-09-05 14:51:21 -07:00
2024-09-05 14:51:21 -07:00
2024-09-07 11:16:57 -07:00
2024-09-05 14:51:21 -07:00
2024-09-05 14:51:21 -07:00
2024-03-15 16:00:14 -04:00
2024-09-07 11:34:12 -04:00
2024-09-05 14:51:21 -07:00
2024-09-05 14:51:21 -07:00
2024-09-05 14:51:21 -07:00
2024-09-06 13:35:00 -07:00
2024-09-05 14:51:21 -07:00
2024-07-13 14:57:50 -04:00
2024-09-05 14:51:21 -07:00
2024-09-05 14:51:21 -07:00
2024-08-17 11:19:45 -07:00
2024-09-05 14:51:21 -07:00
2024-09-06 15:32:26 -07:00
2024-03-12 16:54:49 -04:00
2024-09-06 15:32:26 -07:00
2024-09-05 14:51:21 -07:00
2024-03-14 17:41:51 -04:00
2024-05-06 19:58:21 +03:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-09-10 23:16:55 -07:00
2024-09-12 12:16:40 -07:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-09-06 13:35:00 -07:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-07-13 14:57:50 -04:00
2024-08-31 20:30:04 -07:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-07-13 14:57:50 -04:00
2024-09-05 15:55:24 -07:00
2024-03-15 16:00:14 -04:00
2024-03-14 17:41:51 -04:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-07-13 14:57:50 -04:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-09-05 15:55:24 -07:00
2024-03-14 17:41:51 -04:00
2024-09-05 15:55:24 -07:00
2024-03-15 16:00:14 -04:00
2024-08-27 12:54:00 -07:00
2024-09-05 15:55:24 -07:00
2024-08-19 13:10:28 -07:00
2024-09-05 16:49:42 -07:00
2024-09-09 17:40:00 -04:00
2024-07-13 16:31:35 -04:00
2024-08-17 18:02:03 -07:00
2024-09-05 16:49:42 -07:00
2024-07-13 16:31:35 -04:00
2024-07-13 14:57:50 -04:00
2024-07-13 16:31:35 -04:00
2024-09-05 16:49:42 -07:00
2024-03-14 17:41:51 -04:00
2024-09-05 16:49:42 -07:00
2024-06-10 10:57:59 -04:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-03-14 17:41:51 -04:00
2024-09-05 16:49:42 -07:00
2024-07-13 16:31:35 -04:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-07-13 16:31:35 -04:00
2024-08-17 18:07:51 -07:00
2024-07-13 16:31:35 -04:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-09-10 23:16:55 -07:00
2024-07-13 14:57:50 -04:00
2024-08-18 11:29:04 -07:00
2024-07-13 14:57:50 -04:00
2024-04-10 00:46:21 -07:00
2024-04-18 12:28:14 -07:00
2024-06-03 14:16:49 -07:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-08-29 20:51:13 +03:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-09-05 16:49:42 -07:00
2024-09-06 13:35:00 -07:00
2024-09-05 16:49:42 -07:00
2024-07-13 16:31:35 -04:00
2024-09-06 15:07:19 -04:00
2024-08-29 07:02:40 -07:00
2024-09-03 00:05:29 -07:00
2024-07-13 14:57:50 -04:00
2024-07-13 14:57:50 -04:00
2024-09-05 16:49:42 -07:00
2024-07-13 14:57:50 -04:00
2024-08-13 13:28:24 -07:00
2024-07-13 14:57:50 -04:00
2024-09-05 16:49:42 -07:00
2024-07-13 14:57:50 -04:00
2024-09-05 01:54:17 -07:00