Skip to content

Commit 30dd5b6

Browse files
committed
Fix: monster could go berserk if temporarily sleeping or paralyzed.
1 parent 624e7d2 commit 30dd5b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3526,4 +3526,5 @@ The following changes to date are:
35263526
- Fix: peaceful/tame monsters poly'd into a cross-aligned dragon
35273527
(player is a knight) would stay tame
35283528
- Fix: noncorporeal monsters were affected by knockback
3529+
- Fix: monster could go berserk if temporarily sleeping or paralyzed
35293530

src/mon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ mcalcdistress()
11641164

11651165
if (is_berserker(mtmp->data) && !noattacks(mtmp->data)) {
11661166
if ((mtmp->mhp < (mtmp->mhpmax / 3)) && !mtmp->mberserk
1167-
&& !rn2(15)) {
1167+
&& !mtmp->mfrozen && !rn2(15)) {
11681168
if (canseemon(mtmp) && humanoid(mtmp->data)
11691169
&& !mindless(mtmp->data)) {
11701170
pline("%s flies into a berserker rage!",

0 commit comments

Comments
 (0)