fix(Core/Players): Update the player's zone and area only after update the player's position server-side (#9419)

This commit is contained in:
schell244
2021-12-10 01:58:43 +01:00
committed by GitHub
parent 85d2c39a48
commit 39355fa1ee
4 changed files with 17 additions and 4 deletions

View File

@@ -1806,6 +1806,7 @@ public:
void UpdatePvP(bool state, bool _override = false);
void UpdateZone(uint32 newZone, uint32 newArea);
void UpdateArea(uint32 newArea);
void SetNeedZoneUpdate(bool needUpdate) { m_needZoneUpdate = needUpdate; }
void UpdateZoneDependentAuras(uint32 zone_id); // zones
void UpdateAreaDependentAuras(uint32 area_id); // subzones
@@ -2869,6 +2870,8 @@ public:
uint8 m_grantableLevels;
bool m_needZoneUpdate;
[[nodiscard]] AchievementMgr* GetAchievementMgr() const { return m_achievementMgr; }
private: