Core/Packets: corrected another packet structure part in attacker state update packet to match structure of packet parser

This commit is contained in:
Ovahlord
2020-05-23 21:00:37 +02:00
parent 1e93b90397
commit 91c0f13f77
2 changed files with 6 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ WorldPacket const* WorldPackets::CombatLog::AttackerStateUpdate::Write()
if (HitInfo & HITINFO_UNK1)
{
_worldPacket << uint32(UnkState.State1);
_worldPacket << int32(UnkState.State1);
_worldPacket << float(UnkState.State2);
_worldPacket << float(UnkState.State3);
_worldPacket << float(UnkState.State4);
@@ -62,7 +62,8 @@ WorldPacket const* WorldPackets::CombatLog::AttackerStateUpdate::Write()
_worldPacket << float(UnkState.State9);
_worldPacket << float(UnkState.State10);
_worldPacket << float(UnkState.State11);
_worldPacket << uint32(UnkState.State12);
_worldPacket << int32(UnkState.State12);
_worldPacket << int32(UnkState.State13);
}
return &_worldPacket;

View File

@@ -37,7 +37,7 @@ namespace WorldPackets
struct UnkAttackerState
{
uint32 State1 = 0;
int32 State1 = 0;
float State2 = 0.0f;
float State3 = 0.0f;
float State4 = 0.0f;
@@ -48,7 +48,8 @@ namespace WorldPackets
float State9 = 0.0f;
float State10 = 0.0f;
float State11 = 0.0f;
uint32 State12 = 0;
int32 State12 = 0;
int32 State13 = 0;
};
class AttackerStateUpdate final : public ServerPacket