Core/Creature: implement overriding creature static flags based on spawnId and difficultyId

Port From (https://github.com/TrinityCore/TrinityCore/commit/b5ce4a66df0c76583c662056e46619c8fe98f297)
This commit is contained in:
Hondacrx
2024-08-19 12:08:42 -04:00
parent c1e0da92f9
commit 5f616b95f5
4 changed files with 129 additions and 1 deletions
+3
View File
@@ -985,6 +985,9 @@ namespace Game
Log.outInfo(LogFilter.ServerLoading, "Loading Creature Text Locales...");
Global.CreatureTextMgr.LoadCreatureTextLocales();
Log.outInfo(LogFilter.ServerLoading, "Loading creature StaticFlags overrides...");
Global.ObjectMgr.LoadCreatureStaticFlagsOverride(); // must be after LoadCreatures
Log.outInfo(LogFilter.ServerLoading, "Initializing Scripts...");
Global.ScriptMgr.Initialize();
Global.ScriptMgr.OnConfigLoad(false); // must be done after the ScriptMgr has been properly initialized