Skip to content

Commit

Permalink
[8842] send SMSG_PARTYKILLLOG when player kills an unit
Browse files Browse the repository at this point in the history
thx to darkevil for investigations and help
  • Loading branch information
balrok committed Nov 20, 2009
1 parent 82e4c10 commit 7e18b86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/game/Unit.cpp
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8841"
#define REVISION_NR "8842"
#endif // __REVISION_NR_H__

1 comment on commit 7e18b86

@nowonshere
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, balrok! ;)

Please sign in to comment.