OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
レベル15以上のハーフトロル狂戦士も戦士同様に遅消化が得られるのに, 'C'
[hengband/hengband.git]
/
src
/
cmd1.c
diff --git
a/src/cmd1.c
b/src/cmd1.c
index
2e98edf
..
f16b037
100644
(file)
--- a/
src/cmd1.c
+++ b/
src/cmd1.c
@@
-2726,6
+2726,7
@@
static void py_attack_aux(int y, int x, bool *fear, bool *mdeath, s16b hand, int
}
m_ptr->maxhp -= (k+7)/8;
if (m_ptr->hp > m_ptr->maxhp) m_ptr->hp = m_ptr->maxhp;
+ if (m_ptr->maxhp < 1) m_ptr->maxhp = 1;
weak = TRUE;
}
can_drain = FALSE;