From c56664c5cae4b4ceef2edde85eeb9a57dd82bfaf Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Wed, 24 Jul 2013 12:40:58 +0200 Subject: Core/Spells: Add log for "spell_script_names" has no next rank spells --- src/server/game/Globals/ObjectMgr.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 1bac09bddff..55588bf9b70 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -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))); -- cgit v1.2.3