Core/Misc: Defined and implemented CHARACTER_FLAG_RESTING

Port From (https://github.com/TrinityCore/TrinityCore/commit/9ec1cc07b45ec703028636b2a4302d4a238d090a)
This commit is contained in:
hondacrx
2024-02-21 18:18:20 -05:00
parent 27763a6625
commit e46c8c7e25
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ namespace Framework.Constants
{
None = 0x00000000,
Unk1 = 0x00000001,
Unk2 = 0x00000002,
Resting = 0x00000002,
CharacterLockedForTransfer = 0x00000004,
Unk4 = 0x00000008,
Unk5 = 0x00000010,
@@ -91,6 +91,9 @@ namespace Game.Networking.Packets
PlayerFlags playerFlags = (PlayerFlags)fields.Read<uint>(12);
AtLoginFlags atLoginFlags = (AtLoginFlags)fields.Read<ushort>(13);
if (playerFlags.HasFlag(PlayerFlags.Resting))
Flags |= CharacterFlags.Resting;
if (atLoginFlags.HasAnyFlag(AtLoginFlags.Resurrect))
playerFlags &= ~PlayerFlags.Ghost;