mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 13:09:50 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user