From c2c93fa06173800c1a519f2477f26fbd5968d5c4 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 16 Jul 2022 19:37:54 -0400 Subject: [PATCH] Core/PacketIO: Fixed structure of SMSG_START_TIMER Port From (https://github.com/TrinityCore/TrinityCore/commit/06010c11b138752e475c59a594b42d4e9a7241bd) --- Source/Framework/Constants/SharedConst.cs | 3 ++- Source/Game/Networking/Packets/MiscPackets.cs | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Framework/Constants/SharedConst.cs b/Source/Framework/Constants/SharedConst.cs index 1880b2ae2..8cf8f08ea 100644 --- a/Source/Framework/Constants/SharedConst.cs +++ b/Source/Framework/Constants/SharedConst.cs @@ -1803,7 +1803,8 @@ namespace Framework.Constants public enum TimerType { Pvp = 0, - ChallengerMode = 1 + ChallengerMode = 1, + PlayerCountdown = 2 } public enum GameError : uint diff --git a/Source/Game/Networking/Packets/MiscPackets.cs b/Source/Game/Networking/Packets/MiscPackets.cs index ad5942dfe..49b0df71e 100644 --- a/Source/Game/Networking/Packets/MiscPackets.cs +++ b/Source/Game/Networking/Packets/MiscPackets.cs @@ -1258,14 +1258,14 @@ namespace Game.Networking.Packets public override void Write() { - _worldPacket.WriteUInt32((uint)Type); - _worldPacket.WriteUInt32(TimeLeft); _worldPacket.WriteUInt32(TotalTime); + _worldPacket.WriteUInt32(TimeLeft); + _worldPacket.WriteInt32((int)Type); } - public TimerType Type; - public uint TimeLeft; public uint TotalTime; + public uint TimeLeft; + public TimerType Type; } class ConversationLineStarted : ClientPacket