From: Michael Meyer Date: Mon, 13 Feb 2023 22:11:07 +0000 (-0500) Subject: Don't anger target via mon vs mon zap/breath X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f0bbc28a88b6eb44429276f623af890fbab3c0a;p=nethack 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. --- 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;