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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user