Core/SpellMgr: added a startup error for possibly unhandled procs

(cherry picked from commit 3d5c1b83b1)
This commit is contained in:
ariel-
2016-12-03 20:27:15 -03:00
committed by DoctorKraft
parent 4e08ab8f69
commit 301a0e8681

View File

@@ -1533,7 +1533,18 @@ void SpellMgr::LoadSpellProcs()
}
if (!procSpellTypeMask)
{
for (SpellEffectInfo const* effectInfo : spellInfo->GetEffectsForDifficulty(DIFFICULTY_NONE))
{
if (effectInfo && effectInfo->IsAura())
{
TC_LOG_ERROR("sql.sql", "Spell Id %u has DBC ProcFlags %u, but it's of non-proc aura type, it probably needs an entry in `spell_proc` table to be handled correctly.", spellInfo->Id, spellInfo->ProcFlags);
break;
}
}
continue;
}
SpellProcEntry procEntry;
procEntry.SchoolMask = 0;