Fix angering monsters with non-hero magic rays

Can't use gc.context.mon_moving to check if the ray was caused
by hero, as some rays can happen while hero is moving in response
to their action - for example a bolt of lightning from a god.
dobuzz() uses positive type values for magic rays caused by hero,
so just use that.
This commit is contained in:
Pasi Kallinen
2023-02-15 11:28:09 +02:00
parent 7f0bbc28a8
commit 91dc1ea834
+1 -1
View File
@@ -4482,7 +4482,7 @@ dobuzz(
if (mon_could_move && !mon->mcanmove) /* ZT_SLEEP */ if (mon_could_move && !mon->mcanmove) /* ZT_SLEEP */
slept_monst(mon); slept_monst(mon);
if (abstype != ZT_SLEEP) if (abstype != ZT_SLEEP)
wakeup(mon, !gc.context.mon_moving); wakeup(mon, (type >= 0) ? TRUE : FALSE);
} }
} }
range -= 2; range -= 2;