summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index c3d5290a88..f083d43f1c 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -20,6 +20,7 @@
#include "externs.h"
+#include "arena.h"
#include "beam.h"
#include "cloud.h"
#include "database.h"
@@ -997,6 +998,9 @@ void monster_die(monsters *monster, killer_type killer,
if (!silent && _monster_avoided_death(monster, killer, killer_index))
return;
+ if (crawl_state.arena)
+ arena_monster_died(monster, killer, killer_index, silent);
+
mons_clear_trapping_net(monster);
// Update list of monsters beholding player.
@@ -3584,7 +3588,13 @@ static void _arena_set_foe(monsters *mons)
else if (nearest_unseen != -1)
{
mons->target = menv[nearest_unseen].pos();
- mons->behaviour = BEH_WANDER;
+ if (mons->type == MONS_TEST_SPAWNER)
+ {
+ mons->foe = nearest_unseen;
+ mons->behaviour = BEH_SEEK;
+ }
+ else
+ mons->behaviour = BEH_WANDER;
}
else
{