From 7f0bbc28a88b6eb44429276f623af890fbab3c0a Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Mon, 13 Feb 2023 17:11:07 -0500 Subject: [PATCH] Don't anger target via mon vs mon zap/breath dobuzz() was modified in 677b32c2a7 to anger the target, but beams handled by dobuzz() don't necessarily originate from the hero. Monsters can zap wands that hit other monsters, dragons can use their breath attacks, etc. Those things were causing the targets to become angry at the hero. --- src/zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zap.c b/src/zap.c index 8bc5bcaac..fa236d03a 100644 --- a/src/zap.c +++ b/src/zap.c @@ -4482,7 +4482,7 @@ dobuzz( if (mon_could_move && !mon->mcanmove) /* ZT_SLEEP */ slept_monst(mon); if (abstype != ZT_SLEEP) - wakeup(mon, TRUE); + wakeup(mon, !gc.context.mon_moving); } } range -= 2;