From: <gi...@cr...> - 2012-01-27 19:18:20
|
via 80186d560df439544ce297db28ef0b452f049c23 (commit) from b231c63186a3c19a4bc0ff873724c6098c7e1131 (commit) ----------------------------------------------------------------------- commit 80186d560df439544ce297db28ef0b452f049c23 Author: Adam Borowski <kil...@an...> Date: Fri Jan 27 20:15:42 2012 +0100 Berserk monsters shouldn't flee. ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/mon-behv.cc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 12dcc1f..5505fdb 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -1137,6 +1137,7 @@ void behaviour_event(monster* mon, mon_event_type event, int src, && mon->holiness() != MH_NONLIVING && !mons_class_flag(mon->type, M_NO_FLEE) && !mons_is_cornered(mon) + && !mon->berserk() && x_chance_in_y(fleeThreshold - mon->hit_points, fleeThreshold)) { mon->behaviour = BEH_FLEE; -- Dungeon Crawl Stone Soup |