Core/Units: Cleanup hardcoded magic numbers for byte field offsets

(cherry picked from commit ac1dc75)
This commit is contained in:
Aokromes committed 2016-12-16 19:54:22 +01:00
1 parent dc0a599467
commit 949ce2d576
27 files changed
+103 -105

No files matched your search

@@ -1041,7 +1041,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
// Set FFA PvP for non GM in non-rest mode
if (sWorld->IsFFAPvPRealm() && !pCurrChar->IsGameMaster() && !pCurrChar->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_RESTING))
pCurrChar->SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP);
pCurrChar->SetByteFlag(UNIT_FIELD_BYTES_2, UNIT_BYTES_2_OFFSET_PVP_FLAG, UNIT_BYTE2_FLAG_FFA_PVP);
if (pCurrChar->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP))
pCurrChar->SetContestedPvP();