fix: build (Rename getThreatMgr) (#37)

This commit is contained in:
Nefertumm
2022-05-18 05:37:38 -03:00
committed by GitHub
2 changed files with 5 additions and 5 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->getThreatMgr().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->getThreatMgr().getThreatList();
auto const& threatlist = creature->GetThreatMgr().getThreatList();
#else
ThreatList const& threatlist = creature->GetThreatManager().getThreatList();
#endif
@@ -894,7 +894,7 @@ auto const& threatlist = creature->getThreatMgr().getThreatList();
#if defined(TRINITY)
Eluna::Push(L, creature->GetThreatManager().GetThreatenedByMeList().size());
#elif defined(AZEROTHCORE)
Eluna::Push(L, creature->getThreatMgr().getThreatList().size());
Eluna::Push(L, creature->GetThreatMgr().getThreatList().size());
#else
Eluna::Push(L, creature->GetThreatManager().getThreatList().size());
#endif

View File

@@ -2006,7 +2006,7 @@ namespace LuaUnit
#ifdef TRINITY
unit->GetThreatManager().ClearAllThreat();
#elif AZEROTHCORE
unit->getThreatMgr().clearReferences();
unit->GetThreatMgr().clearReferences();
#else
unit->GetThreatManager().clearReferences();
#endif
@@ -2994,7 +2994,7 @@ namespace LuaUnit
int32 threatPct = Eluna::CHECKVAL<int32>(L, 3, true);
#ifdef AZEROTHCORE
unit->getThreatMgr().modifyThreatPercent(victim, threatPct);
unit->GetThreatMgr().modifyThreatPercent(victim, threatPct);
#endif
return 0;
}