diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-17 08:44:01 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-17 08:44:01 -0400 |
commit | 04369f067b8ab5b674a55467cc4dad98a9359273 (patch) | |
tree | 3446ca7a729a4f59f92fa9a7675ae9fe217ce945 /src/world.cpp | |
parent | 3c51eb91645fb9ab6e6cbe49b354408a6e77d1d1 (diff) |
better mob combat stuff
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 2 |
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++) { |