mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 21:32:52 +01:00
*Add config option CheckDB to check if the contents in FULL folder are applied.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user