mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
* [2008_10_19_01_mangos_spell_affect.sql] List fake data for last spells expected to listed in spell_affect and enable post-loading check for spell-affect data.
This commit is contained in:
parent
157134a0a7
commit
d1ebd52390
4 changed files with 19 additions and 4 deletions
|
|
@ -743,8 +743,6 @@ void SpellMgr::LoadSpellAffects()
|
|||
sLog.outString();
|
||||
sLog.outString( ">> Loaded %u spell affect definitions", count );
|
||||
|
||||
/*
|
||||
// Commented for now, as it still produces many errors (still quite many spells miss spell_affect)
|
||||
for (uint32 id = 0; id < sSpellStore.GetNumRows(); ++id)
|
||||
{
|
||||
SpellEntry const* spellInfo = sSpellStore.LookupEntry(id);
|
||||
|
|
@ -765,10 +763,9 @@ void SpellMgr::LoadSpellAffects()
|
|||
if(mSpellAffectMap.find((id<<8) + effectId) != mSpellAffectMap.end())
|
||||
continue;
|
||||
|
||||
sLog.outErrorDb("Spell %u (%s) misses spell_affect for effect %u",id,spellInfo->SpellName[sWorld.GetDBClang()], effectId);
|
||||
sLog.outErrorDb("Spell %u (%s) misses spell_affect for effect %u",id,spellInfo->SpellName[sWorld.GetDefaultDbcLocale()], effectId);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
bool SpellMgr::IsAffectedBySpell(SpellEntry const *spellInfo, uint32 spellId, uint8 effectId, uint64 familyFlags) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue