From 9b4f3681c0e603cc86d47ffad2bdc7aa765cb5a8 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 1 Sep 2024 15:40:27 -0400 Subject: [PATCH] Core/PacketIO: Fixed SMSG_ATTACKER_STATE_UPDATE structure Port From (https://github.com/TrinityCore/TrinityCore/commit/b103de805a449efcd359158b34b14cd64e91fc08) --- Source/Game/Networking/Packets/CombatLogPackets.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Source/Game/Networking/Packets/CombatLogPackets.cs b/Source/Game/Networking/Packets/CombatLogPackets.cs index 62fa99ebd..0a8aaa963 100644 --- a/Source/Game/Networking/Packets/CombatLogPackets.cs +++ b/Source/Game/Networking/Packets/CombatLogPackets.cs @@ -565,17 +565,7 @@ namespace Game.Networking.Packets if (hitInfo.HasAnyFlag(HitInfo.Block | HitInfo.Unk12)) attackRoundInfo.WriteFloat(Unk); - attackRoundInfo.WriteUInt8((byte)ContentTuning.TuningType); - attackRoundInfo.WriteUInt8(ContentTuning.TargetLevel); - attackRoundInfo.WriteUInt8(ContentTuning.Expansion); - attackRoundInfo.WriteInt16(ContentTuning.PlayerLevelDelta); - attackRoundInfo.WriteInt8(ContentTuning.TargetScalingLevelDelta); - attackRoundInfo.WriteFloat(ContentTuning.PlayerItemLevel); - attackRoundInfo.WriteFloat(ContentTuning.TargetItemLevel); - attackRoundInfo.WriteUInt32(ContentTuning.ScalingHealthItemLevelCurveID); - attackRoundInfo.WriteUInt32((uint)ContentTuning.Flags); - attackRoundInfo.WriteUInt32(ContentTuning.PlayerContentTuningID); - attackRoundInfo.WriteUInt32(ContentTuning.TargetContentTuningID); + ContentTuning.Write(attackRoundInfo); WriteLogDataBit(); FlushBits();