[8842] send SMSG_PARTYKILLLOG when player kills an unit

thx to darkevil for investigations and help
This commit is contained in:
balrok 2009-11-20 10:57:42 +01:00
parent 6c052039fb
commit 21f234bdfa
2 changed files with 9 additions and 1 deletions

View file

@ -574,6 +574,14 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
{
player->RewardPlayerAndGroupAtKill(pVictim);
player->ProcDamageAndSpell(pVictim, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_EX_NONE, 0);
WorldPacket data(SMSG_PARTYKILLLOG, (8+8)); //send event PARTY_KILL
data << uint64(player->GetGUID()); //player with killing blow
data << uint64(pVictim->GetGUID()); //victim
if (Group *group = player->GetGroup())
group->BroadcastPacket(&data, group->GetMemberGroup(player->GetGUID()));
else
player->SendDirectMessage(&data);
}
DEBUG_LOG("DealDamageAttackStop");

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8841"
#define REVISION_NR "8842"
#endif // __REVISION_NR_H__