Core/Items: Addes support for calculating item level & cleanup iterating over items.
Based on https://github.com/TrinityCore/TrinityCore/pull/26276
This commit is contained in:
@@ -1024,6 +1024,9 @@ namespace Game
|
||||
if (!pCurrChar.IsStandState() && !pCurrChar.HasUnitState(UnitState.Stunned))
|
||||
pCurrChar.SetStandState(UnitStandStateType.Stand);
|
||||
|
||||
pCurrChar.UpdateAverageItemLevelTotal();
|
||||
pCurrChar.UpdateAverageItemLevelEquipped();
|
||||
|
||||
m_playerLoading.Clear();
|
||||
|
||||
Global.ScriptMgr.OnPlayerLogin(pCurrChar);
|
||||
|
||||
Reference in New Issue
Block a user