private void UpdateKillCount(EntityInfo npc)
{
if (null == npc)
{
return;
}
EntityInfo killer = null;
EntityInfo user = EntityManager.GetEntityInfo(npc.KillerId);
if (null != user)
{
killer = user;
}
else
{
EntityInfo parter = EntityManager.GetEntityInfo(npc.KillerId);
if (null != parter && parter.OwnerId > 0)
{
killer = EntityManager.GetEntityInfo(parter.OwnerId);
}
}
if (null != killer)
{
killer.GetCombatStatisticInfo().AddKillNpcCount(1);
}
}