Core/Items: Implement azerite empowered items
Port From (https://github.com/TrinityCore/TrinityCore/commit/d934824421c83598853487c5cc9e4cbb3c5d0006)
This commit is contained in:
@@ -429,12 +429,18 @@ namespace Game.Entities
|
||||
if (azeriteItem != null)
|
||||
{
|
||||
if (azeriteItem.IsEquipped())
|
||||
{
|
||||
ApplyAllAzeriteEmpoweredItemMods(false);
|
||||
ApplyAzeritePowers(azeriteItem, false);
|
||||
}
|
||||
|
||||
azeriteItem.SetSelectedAzeriteEssences(spec.Id);
|
||||
|
||||
if (azeriteItem.IsEquipped())
|
||||
{
|
||||
ApplyAzeritePowers(azeriteItem, true);
|
||||
ApplyAllAzeriteEmpoweredItemMods(true);
|
||||
}
|
||||
|
||||
azeriteItem.SetState(ItemUpdateState.Changed, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user