diff options
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index ef499b6f53..d0a8290703 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -36,6 +36,7 @@ #include "cloud.h" #include "debug.h" #include "describe.h" +#include "dgnevent.h" #include "fight.h" #include "hiscores.h" #include "it_use2.h" @@ -851,6 +852,10 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) } } + dungeon_events.fire_event( + dgn_event(DET_MONSTER_DIED, monster->pos(), 0, + monster_index(monster), killer)); + const coord_def mwhere = monster->pos(); if (!hard_reset) monster_drop_ething(monster, YOU_KILL(killer) || pet_kill); |