Core/Items: Calculating item level + organized iterating over items (#26276)

* Unified iterating player items into a single function

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Matan Shukry
2021-04-21 11:02:42 +03:00
committed by GitHub
parent bf1c73dfc2
commit a8fa2a03be
10 changed files with 377 additions and 472 deletions

View File

@@ -2087,7 +2087,7 @@ void GameObject::Use(Unit* user)
}
case 2: // Heart Forge
{
Item const* item = player->GetItemByEntry(ITEM_ID_HEART_OF_AZEROTH, ITEM_SEARCH_EVERYWHERE);
Item const* item = player->GetItemByEntry(ITEM_ID_HEART_OF_AZEROTH, ItemSearchLocation::Everywhere);
if (!item)
return;