mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10912] Move scripting related functions from ObjectMgr to ScriptMgr
This commit is contained in:
parent
f61166c2bf
commit
0d6f990e4e
23 changed files with 1297 additions and 1185 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "WorldPacket.h"
|
||||
#include "World.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "QuestDef.h"
|
||||
|
|
@ -2167,7 +2168,7 @@ std::string Creature::GetAIName() const
|
|||
|
||||
std::string Creature::GetScriptName() const
|
||||
{
|
||||
return sObjectMgr.GetScriptName(GetScriptId());
|
||||
return sScriptMgr.GetScriptName(GetScriptId());
|
||||
}
|
||||
|
||||
uint32 Creature::GetScriptId() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue