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

Port From (https://github.com/TrinityCore/TrinityCore/commit/d02f3ca7cab196eb2b2b14410582aff009b04817)
This commit is contained in:
hondacrx
2019-12-02 22:54:06 -05:00
parent cd396cdda5
commit 4e7005830f
4 changed files with 24 additions and 8 deletions
+2
View File
@@ -1184,6 +1184,7 @@ namespace Game.Entities
_ApplyAllAuraStatMods();
_ApplyAllItemMods();
ApplyAllAzeriteItemMods(true);
SetCanModifyStats(true);
@@ -1193,6 +1194,7 @@ namespace Game.Entities
{
SetCanModifyStats(false);
ApplyAllAzeriteItemMods(false);
_RemoveAllItemMods();
_RemoveAllAuraStatMods();