aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 70ba967..b6e46bf 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -747,6 +747,8 @@ singleDetect(Entity *e)
} else if (e->health <= 0) {
// die
e->die();
+ if (inBattle && e->type == MOBT)
+ Mobp(e)->onDeath();
// delete the entity
for (i = 0; i < entity.size(); i++) {