Skip to content

Commit eb265e3

Browse files
committed
Fix: Monks incurring to-hit penalty when wearing bracers (martial arts).
1 parent 0ed3bb6 commit eb265e3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3384,4 +3384,5 @@ The following changes to date are:
33843384
- Fix: reactivate offhand weapon intrinsics when catching a returning weapon
33853385
- Fix: samurai splint mails were not always rustproof
33863386
- Fix: prevent Nazgul from attacking undead hobbit types
3387+
- Fix: Monks incurring to-hit penalty when wearing bracers (martial arts)
33873388

src/uhitm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ int *attk_count, *role_roll_penalty;
313313
if (Role_if(PM_MONK) && !Upolyd) {
314314
if (uarm)
315315
tmp -= (*role_roll_penalty = urole.spelarmr) + 20;
316-
else if (!uwep && !uarms)
316+
else if (!uwep && (!uarms || is_bracer(uarms)))
317317
tmp += (u.ulevel / 3) + 2;
318318
}
319319

src/weapon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ botl_hitbonus()
199199
if (Role_if(PM_MONK) && !Upolyd) {
200200
if (uarm)
201201
tmp -= urole.spelarmr + 20;
202-
else if (!uwep && !uarms)
202+
else if (!uwep && (!uarms || is_bracer(uarms)))
203203
tmp += (u.ulevel / 3) + 2;
204204
}
205205

0 commit comments

Comments
 (0)