Fixed bugreport:2313 where a player interacting with a NPC would still be queued when died and therefore causing problems with further NPC interactions.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16946 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
momacabu 2012-11-23 01:10:36 +00:00
parent 0fc1353ab1
commit 1fae8bcda4

View File

@ -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;