summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 5fae9350f..9e3b642d6 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1343,6 +1343,9 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s
clif_clearunit_area(target,CLR_DEAD);
skill_unit_move(target,gettick(),4);
skill_cleartimerskill(target);
+
+ if(target->type == BL_PC && ((TBL_PC*)target)->npc_id && flag == 1)
+ npc_event_dequeue((TBL_PC*)target);
}
return hp+sp;