summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 35efb6d0a2..8bcadd08fe 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -139,6 +139,15 @@ void monster_grid_updates()
beogh_follower_convert(*mi);
slime_convert(*mi);
fedhas_neutralise(*mi);
+
+ // XXX: Probably quite hackish. Allows for monsters going berserk when
+ // they see the player. Currently only used for Duvessa, see the
+ // function _elven_twin_dies in mon-stuff.cc.
+ if (mi->flags & MF_GOING_BERSERK)
+ {
+ mi->flags &= ~MF_GOING_BERSERK;
+ mi->go_berserk(true);
+ }
}
}