mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01: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:
@@ -5824,7 +5824,7 @@ void Spell::EffectLearnAzeriteEssencePower(SpellEffIndex /*effIndex*/)
|
||||
if (!playerTarget)
|
||||
return;
|
||||
|
||||
Item* heartOfAzeroth = playerTarget->GetItemByEntry(ITEM_ID_HEART_OF_AZEROTH, ITEM_SEARCH_EVERYWHERE);
|
||||
Item* heartOfAzeroth = playerTarget->GetItemByEntry(ITEM_ID_HEART_OF_AZEROTH, ItemSearchLocation::Everywhere);
|
||||
if (!heartOfAzeroth)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user