- no critical hits when exhausted
This commit is contained in:
parent
bc631d8657
commit
a560248527
2
attack.c
2
attack.c
|
@ -1032,6 +1032,8 @@ int attacklf(lifeform_t *lf, lifeform_t *victim, object_t *wep, flag_t *damflag)
|
||||||
hit = rolltohit(lf, victim, wep, &critical, &fumble, &missby);
|
hit = rolltohit(lf, victim, wep, &critical, &fumble, &missby);
|
||||||
if (lfhasflag(victim, F_HEAVENARM)) {
|
if (lfhasflag(victim, F_HEAVENARM)) {
|
||||||
critical = B_FALSE;
|
critical = B_FALSE;
|
||||||
|
} else if (isexhausted(lf)) {
|
||||||
|
critical = B_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (critical && !lfhasflag(lf, F_PHANTASM)) {
|
if (critical && !lfhasflag(lf, F_PHANTASM)) {
|
||||||
|
|
Loading…
Reference in New Issue