*Add config option CheckDB to check if the contents in FULL folder are applied.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-17 14:09:17 -05:00
parent cf99758b0b
commit 2d569883e6
8 changed files with 46 additions and 0 deletions

View File

@@ -3626,3 +3626,13 @@ void SpellMgr::LoadSpellLinked()
sLog.outString();
sLog.outString( ">> Loaded %u linked spells", count );
}
bool SpellMgr::CheckDB() const
{
SpellScriptTarget::const_iterator lower = GetBeginSpellScriptTarget(30531);
SpellScriptTarget::const_iterator upper = GetEndSpellScriptTarget(30531);
if(lower == upper || lower->second.targetEntry != 17256)
return false;
return true;
}