- no critical hits when exhausted

This commit is contained in:
Rob Pearce 2016-05-31 00:43:01 +10:00
parent bc631d8657
commit a560248527
1 changed files with 2 additions and 0 deletions

View File

@ -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);
if (lfhasflag(victim, F_HEAVENARM)) {
critical = B_FALSE;
} else if (isexhausted(lf)) {
critical = B_FALSE;
}
if (critical && !lfhasflag(lf, F_PHANTASM)) {