Core/: Set correct sizes of SMSG_ATTACKSTOP packets
--HG-- branch : trunk
This commit is contained in:
@@ -2550,7 +2550,7 @@ void Unit::SendMeleeAttackStop(Unit* victim)
|
|||||||
if (!victim)
|
if (!victim)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
WorldPacket data(SMSG_ATTACKSTOP, (4+16)); // we guess size
|
WorldPacket data(SMSG_ATTACKSTOP, (8+8+4)); // we guess size
|
||||||
data.append(GetPackGUID());
|
data.append(GetPackGUID());
|
||||||
data.append(victim->GetPackGUID()); // can be 0x00...
|
data.append(victim->GetPackGUID()); // can be 0x00...
|
||||||
data << uint32(0); // can be 0x1
|
data << uint32(0); // can be 0x1
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void WorldSession::HandleSetSheathedOpcode(WorldPacket & recv_data)
|
|||||||
|
|
||||||
void WorldSession::SendAttackStop(Unit const* enemy)
|
void WorldSession::SendAttackStop(Unit const* enemy)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_ATTACKSTOP, (4+20)); // we guess size
|
WorldPacket data(SMSG_ATTACKSTOP, (8+8+4)); // we guess size
|
||||||
data.append(GetPlayer()->GetPackGUID());
|
data.append(GetPlayer()->GetPackGUID());
|
||||||
data.append(enemy ? enemy->GetPackGUID() : 0); // must be packed guid
|
data.append(enemy ? enemy->GetPackGUID() : 0); // must be packed guid
|
||||||
data << uint32(0); // unk, can be 1 also
|
data << uint32(0); // unk, can be 1 also
|
||||||
|
|||||||
Reference in New Issue
Block a user