summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorsketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-22 14:22:08 +0000
committersketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-22 14:22:08 +0000
commit7f558fc3f0f09071d232660536e9e12c8a214404 (patch)
tree1ccf67bc654406431ad791058c40deebe752d5a9 /src/map/mob.c
parent465fca8dbd6e4eac36d0207b3981c05daa34c715 (diff)
downloadhercules-7f558fc3f0f09071d232660536e9e12c8a214404.tar.gz
hercules-7f558fc3f0f09071d232660536e9e12c8a214404.tar.bz2
hercules-7f558fc3f0f09071d232660536e9e12c8a214404.tar.xz
hercules-7f558fc3f0f09071d232660536e9e12c8a214404.zip
Added support for killmonster to fire OnMyMobDead optionally.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12876 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 9859de698..adc8d8c83 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2532,7 +2532,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if(md->nd)
mob_script_callback(md, src, CALLBACK_DEAD);
else
- if(md->npc_event[0])
+ if(md->npc_event[0] && !md->npc_killmonster)
{
md->status.hp = 0; //So that npc_event invoked functions KNOW that I am dead.
if(src)