From 0fb8765a6638fd947b59fce44d5c31251d0cdadd Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 17 Jun 2023 16:29:59 +0200 Subject: Core/Items: Item bonus generation improvements * Pass ItemContext to item creation wherever possible * Support scaling item levels with m+ keystone levels (not used currently) * Fixed item link validation when client sends it as default uninitialized bonus list with context only * Support scaling items depending on current active season (seasons not implemented) * Implemented content tuning redirection --- src/server/game/Spells/SpellEffects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/Spells/SpellEffects.cpp') diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index e9ffb75cac7..3ac7951aa29 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1271,7 +1271,7 @@ void Spell::EffectHealthLeech() } } -void Spell::DoCreateItem(uint32 itemId, ItemContext context /*= ItemContext::NONE*/, std::vector const& bonusListIDs /*= std::vector()*/) +void Spell::DoCreateItem(uint32 itemId, ItemContext context /*= ItemContext::NONE*/, std::vector const* bonusListIDs /*= nullptr*/) { if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) return; @@ -5383,7 +5383,7 @@ void Spell::EffectCreateHeirloomItem() std::vector bonusList; bonusList.push_back(collectionMgr->GetHeirloomBonus(m_misc.Raw.Data[0])); - DoCreateItem(m_misc.Raw.Data[0], ItemContext::NONE, bonusList); + DoCreateItem(m_misc.Raw.Data[0], ItemContext::NONE, &bonusList); ExecuteLogEffectCreateItem(SpellEffectName(effectInfo->Effect), m_misc.Raw.Data[0]); } -- cgit v1.2.3