Core/Misc: Defined and implemented CHARACTER_FLAG_RESTING
Port From (https://github.com/TrinityCore/TrinityCore/commit/9ec1cc07b45ec703028636b2a4302d4a238d090a)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user