mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Core): Correct packet structure for combat stop messages. (#19434)
* Init. * Reviewed changes.
This commit is contained in:
@@ -86,10 +86,12 @@ void WorldSession::SendAttackStop(Unit const* enemy)
|
||||
{
|
||||
WorldPacket data(SMSG_ATTACKSTOP, (8 + 8 + 4)); // we guess size
|
||||
data << GetPlayer()->GetPackGUID();
|
||||
|
||||
if (enemy)
|
||||
{
|
||||
uint8 nowDead = enemy->isDead();
|
||||
data << enemy->GetPackGUID(); // must be packed guid
|
||||
data << enemy->isDead();
|
||||
data << nowDead;
|
||||
}
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user