mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Merge branch 'ElunaLuaEngine:master' into feat/http-requests
This commit is contained in:
@@ -769,7 +769,7 @@ namespace LuaCreature
|
||||
#elif defined(TRINITY)
|
||||
auto const& threatlist = creature->GetThreatManager().GetSortedThreatList();
|
||||
#elif defined(AZEROTHCORE)
|
||||
auto const& threatlist = creature->getThreatManager().getThreatList();
|
||||
auto const& threatlist = creature->getThreatMgr().getThreatList();
|
||||
#endif
|
||||
#ifndef TRINITY
|
||||
if (threatlist.empty())
|
||||
@@ -860,7 +860,7 @@ namespace LuaCreature
|
||||
#if defined(TRINITY)
|
||||
auto const& threatlist = creature->GetThreatManager().GetThreatenedByMeList();
|
||||
#elif defined(AZEROTHCORE)
|
||||
auto const& threatlist = creature->getThreatManager().getThreatList();
|
||||
auto const& threatlist = creature->getThreatMgr().getThreatList();
|
||||
#else
|
||||
ThreatList const& threatlist = creature->GetThreatManager().getThreatList();
|
||||
#endif
|
||||
@@ -894,7 +894,7 @@ auto const& threatlist = creature->getThreatManager().getThreatList();
|
||||
#if defined(TRINITY)
|
||||
Eluna::Push(L, creature->GetThreatManager().GetThreatenedByMeList().size());
|
||||
#elif defined(AZEROTHCORE)
|
||||
Eluna::Push(L, creature->getThreatManager().getThreatList().size());
|
||||
Eluna::Push(L, creature->getThreatMgr().getThreatList().size());
|
||||
#else
|
||||
Eluna::Push(L, creature->GetThreatManager().getThreatList().size());
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "GuildMgr.h"
|
||||
#include "Language.h"
|
||||
#include "Mail.h"
|
||||
#include "MapManager.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Opcodes.h"
|
||||
@@ -43,6 +42,12 @@
|
||||
#include "SpellHistory.h"
|
||||
#endif
|
||||
|
||||
#if defined AZEROTHCORE
|
||||
#include "MapMgr.h"
|
||||
#else
|
||||
#include "MapManager.h"
|
||||
#endif
|
||||
|
||||
#if defined TRINITY || defined AZEROTHCORE
|
||||
#include "Config.h"
|
||||
#include "GameEventMgr.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#ifdef AZEROTHCORE
|
||||
|
||||
#include "BanManager.h"
|
||||
#include "BanMgr.h"
|
||||
|
||||
enum BanMode
|
||||
{
|
||||
|
||||
@@ -2006,7 +2006,7 @@ namespace LuaUnit
|
||||
#ifdef TRINITY
|
||||
unit->GetThreatManager().ClearAllThreat();
|
||||
#elif AZEROTHCORE
|
||||
unit->getThreatManager().clearReferences();
|
||||
unit->getThreatMgr().clearReferences();
|
||||
#else
|
||||
unit->GetThreatManager().clearReferences();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user