Core/Spells: Add log for "spell_script_names" has no next rank spells
This commit is contained in:
1 parent
ad9e0c5bc4
commit
c56664c5ca
1 file changed
+5
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user