Core/Items: Add location filters to Player.GetItemByEntry
Port From (https://github.com/TrinityCore/TrinityCore/commit/96575e33bb6992e6906e02427f20c58af674bdaa)
This commit is contained in:
@@ -1248,7 +1248,7 @@ namespace Game.Entities
|
||||
{
|
||||
if (count > 0)
|
||||
{
|
||||
Item heartOfAzeroth = GetItemByEntry(PlayerConst.ItemIdHeartOfAzeroth);
|
||||
Item heartOfAzeroth = GetItemByEntry(PlayerConst.ItemIdHeartOfAzeroth, ItemSearchLocation.Everywhere);
|
||||
if (heartOfAzeroth != null)
|
||||
heartOfAzeroth.ToAzeriteItem().GiveXP((ulong)count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user