[10011] Check redundent procFlags value in spell_proc_event.

This commit is contained in:
VladimirMangos 2010-05-31 12:24:16 +04:00
parent 59cf9c1dbd
commit 93624bb496
6 changed files with 24 additions and 7 deletions

View file

@ -1074,15 +1074,24 @@ void SpellMgr::LoadSpellProcEvents()
DoSpellProcEvent worker(spe);
doForHighRanks(entry,worker);
if (spell->procFlags==0)
if (spe.procFlags == 0)
{
if (spe.procFlags == 0)
if (spell->procFlags==0)
{
sLog.outErrorDb("Spell %u listed in `spell_proc_event` probally not triggered spell", entry);
continue;
}
customProc++;
}
else
{
if (spell->procFlags==spe.procFlags)
{
sLog.outErrorDb("Spell %u listed in `spell_proc_event` have exactly same proc flags as in spell.dbc, field value redundent", entry);
continue;
}
}
++count;
} while( result->NextRow() );