Core/Items: Add location filters to Player::GetItemByEntry

This commit is contained in:
Shauren
2019-11-29 00:10:29 +01:00
parent 235ec18143
commit 96575e33bb
9 changed files with 79 additions and 37 deletions
@@ -2006,7 +2006,7 @@ void GameObject::Use(Unit* user)
}
case 2: // Heart Forge
{
Item const* item = player->GetItemByEntry(ITEM_ID_HEART_OF_AZEROTH);
Item const* item = player->GetItemByEntry(ITEM_ID_HEART_OF_AZEROTH, ITEM_SEARCH_EVERYWHERE);
if (!item)
return;