Core/Items: Changed how azerite item bonuses are applied at login to avoid applying them twice

This commit is contained in:
Shauren
2019-12-03 00:40:04 +01:00
parent 459fe6109d
commit d02f3ca7ca
3 changed files with 27 additions and 12 deletions
@@ -789,6 +789,7 @@ void Player::_ApplyAllStatBonuses()
_ApplyAllAuraStatMods();
_ApplyAllItemMods();
ApplyAllAzeriteItemMods(true);
SetCanModifyStats(true);
@@ -799,6 +800,7 @@ void Player::_RemoveAllStatBonuses()
{
SetCanModifyStats(false);
ApplyAllAzeriteItemMods(false);
_RemoveAllItemMods();
_RemoveAllAuraStatMods();