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

This commit is contained in:
hondacrx
2018-03-12 13:01:10 -04:00
parent 8edb9e6c73
commit 04ececae4c
+11
View File
@@ -1320,7 +1320,18 @@ namespace Game.Entities
}
if (procSpellTypeMask == 0)
{
foreach (SpellEffectInfo effectInfo in spellInfo.GetEffectsForDifficulty(Difficulty.None))
{
if (effectInfo != null && effectInfo.IsAura())
{
Log.outError(LogFilter.Sql, $"Spell Id {spellInfo.Id} has DBC ProcFlags {spellInfo.ProcFlags}, but it's of non-proc aura type, it probably needs an entry in `spell_proc` table to be handled correctly.");
break;
}
}
continue;
}
SpellProcEntry procEntry = new SpellProcEntry();
procEntry.SchoolMask = 0;