diff options
author | n0n4m3 <none@none> | 2009-12-19 19:13:18 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-19 19:13:18 +0100 |
commit | 50bf68e099fbd7935d0e28ea052c4448c283f9e8 (patch) | |
tree | b103888a2b5432b285a89a19e0df11a5fe40f77c /src | |
parent | f97f6e5201bda7f37fa4e11fd74ae3d3e469a62c (diff) |
send SMSG_PARTYKILLLOG when player kills an unit. by balrok
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 718fbae1e4d..f320ee45c92 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14109,6 +14109,14 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss) if (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); else player->ProcDamageAndSpell(pVictim, PROC_FLAG_NONE, PROC_FLAG_KILLED, PROC_EX_NONE, 0); } |