mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10011] Check redundent procFlags value in spell_proc_event.
This commit is contained in:
parent
59cf9c1dbd
commit
93624bb496
6 changed files with 24 additions and 7 deletions
|
|
@ -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() );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue