summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index ed8b22d55c..6cd1f2961e 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -13,6 +13,7 @@
#include <conio.h>
#endif
+#include "arena.h"
#include "beam.h"
#include "colour.h"
#include "directn.h"
@@ -196,14 +197,14 @@ static bool _do_split(monsters *thing, coord_def & target)
monsters *new_slime = &env.mons[slime_idx];
+ if (!new_slime)
+ return (false);
+
// Inflict the new slime with any enchantments on the parent.
_split_ench_durations(thing, new_slime);
new_slime->attitude = thing->attitude;
new_slime->flags = thing->flags;
- if (!new_slime)
- return (false);
-
if (you.can_see(thing))
mprf("%s splits.", thing->name(DESC_CAP_A).c_str());
@@ -218,6 +219,9 @@ static bool _do_split(monsters *thing, coord_def & target)
_stats_from_blob_count(thing, hp_per_blob);
_stats_from_blob_count(new_slime, hp_per_blob);
+ if (crawl_state.arena)
+ arena_split_monster(thing, new_slime);
+
return (true);
}