Core/Misc: Defined and implemented CHARACTER_FLAG_RESTING (#29695)

This commit is contained in:
Ghaster
2024-02-16 18:15:03 +01:00
committed by GitHub
parent 888ccd1e44
commit 9ec1cc07b4
2 changed files with 4 additions and 1 deletions

View File

@@ -1018,7 +1018,7 @@ enum CharacterFlags
{
CHARACTER_FLAG_NONE = 0x00000000,
CHARACTER_FLAG_UNK1 = 0x00000001,
CHARACTER_FLAG_UNK2 = 0x00000002,
CHARACTER_FLAG_RESTING = 0x00000002,
CHARACTER_FLAG_LOCKED_FOR_TRANSFER = 0x00000004,
CHARACTER_FLAG_UNK4 = 0x00000008,
CHARACTER_FLAG_UNK5 = 0x00000010,

View File

@@ -120,6 +120,9 @@ EnumCharactersResult::CharacterInfo::CharacterInfo(Field* fields)
uint32 playerFlags = fields[12].GetUInt32();
uint32 atLoginFlags = fields[13].GetUInt16();
if (playerFlags & PLAYER_FLAGS_RESTING)
Flags |= CHARACTER_FLAG_RESTING;
if (atLoginFlags & AT_LOGIN_RESURRECT)
playerFlags &= ~PLAYER_FLAGS_GHOST;