Core/Items: Implement azerite essences
Port From (https://github.com/TrinityCore/TrinityCore/commit/ec9d624aec9e0a39b1bcee7d4077f46be358faad)
This commit is contained in:
@@ -422,6 +422,24 @@ namespace Game.Entities
|
||||
activeGlyphs.IsFullUpdate = true;
|
||||
SendPacket(activeGlyphs);
|
||||
|
||||
Item item = GetItemByEntry(PlayerConst.ItemIdHeartOfAzeroth);
|
||||
if (item != null)
|
||||
{
|
||||
AzeriteItem azeriteItem = item.ToAzeriteItem();
|
||||
if (azeriteItem != null)
|
||||
{
|
||||
if (azeriteItem.IsEquipped())
|
||||
ApplyAzeritePowers(azeriteItem, false);
|
||||
|
||||
azeriteItem.SetSelectedAzeriteEssences(spec.Id);
|
||||
|
||||
if (azeriteItem.IsEquipped())
|
||||
ApplyAzeritePowers(azeriteItem, true);
|
||||
|
||||
azeriteItem.SetState(ItemUpdateState.Changed, this);
|
||||
}
|
||||
}
|
||||
|
||||
var shapeshiftAuras = GetAuraEffectsByType(AuraType.ModShapeshift);
|
||||
foreach (AuraEffect aurEff in shapeshiftAuras)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user