Core/Spells: Add log for "spell_script_names" has no next rank spells

This commit is contained in:
Vincent-Michael
2013-07-24 12:40:58 +02:00
parent ad9e0c5bc4
commit c56664c5ca

View File

@@ -4850,6 +4850,11 @@ void ObjectMgr::LoadSpellScriptNames()
TC_LOG_ERROR(LOG_FILTER_SQL, "Scriptname:`%s` spell (spell_id:%d) is not first rank of spell.", scriptName, fields[0].GetInt32());
continue;
}
if (!sSpellMgr->GetNextSpellInChain(spellId))
{
TC_LOG_ERROR(LOG_FILTER_SQL, "Scriptname:`%s` spell (spell_id:%d) has no ranks of spell.", scriptName, fields[0].GetInt32());
continue;
}
while (spellInfo)
{
_spellScriptsStore.insert(SpellScriptsContainer::value_type(spellInfo->Id, GetScriptId(scriptName)));