fix: Azerothcore mgr rename

This commit is contained in:
Kitzunu
2021-09-15 02:59:37 +02:00
parent a6a7553162
commit 60d943f23b
4 changed files with 11 additions and 6 deletions

View File

@@ -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