Core/ObjectMgr: Refactor sItemStorage
This commit is contained in:
@@ -2366,7 +2366,7 @@ bool SpellMgr::IsSpellValid(SpellEntry const *spellInfo, Player *pl, bool msg)
|
||||
|
||||
}
|
||||
// also possible IsLootCraftingSpell case but fake item must exist anyway
|
||||
else if (!ObjectMgr::GetItemPrototype(spellInfo->EffectItemType[i]))
|
||||
else if (!sObjectMgr->GetItemTemplate(spellInfo->EffectItemType[i]))
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
@@ -2404,7 +2404,7 @@ bool SpellMgr::IsSpellValid(SpellEntry const *spellInfo, Player *pl, bool msg)
|
||||
{
|
||||
for (uint8 j = 0; j < MAX_SPELL_REAGENTS; ++j)
|
||||
{
|
||||
if (spellInfo->Reagent[j] > 0 && !ObjectMgr::GetItemPrototype(spellInfo->Reagent[j]))
|
||||
if (spellInfo->Reagent[j] > 0 && !sObjectMgr->GetItemTemplate(spellInfo->Reagent[j]))
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user