summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgrow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mgrow.cc')
-rw-r--r--crawl-ref/source/mgrow.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/mgrow.cc b/crawl-ref/source/mgrow.cc
index 6334387a82..3693e43dd4 100644
--- a/crawl-ref/source/mgrow.cc
+++ b/crawl-ref/source/mgrow.cc
@@ -9,6 +9,7 @@
#include "enum.h"
#include "mgrow.h"
#include "mon-util.h"
+#include "monplace.h"
#include "monstuff.h"
#include "random.h"
@@ -235,5 +236,9 @@ bool monsters::gain_exp(int exp)
if (hit_dice < MAX_MONS_HD && experience >= mexplevs[hit_dice + 1])
experience = (mexplevs[hit_dice] + mexplevs[hit_dice + 1]) / 2;
+ // If the monster has leveled up to a monster that will be angered
+ // by the player, handle it properly.
+ player_angers_monster(this);
+
return (levels_gained > 0);
}