mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 23:26:23 +00:00
Core/Combat: rename getThreatMgr() to GetThreatMgr() (#11758)
This commit is contained in:
@@ -245,7 +245,7 @@ public:
|
||||
{
|
||||
PreventHitEffect(effIndex);
|
||||
if (Unit* target = GetHitUnit())
|
||||
GetCaster()->getThreatMgr().modifyThreatPercent(target, -20);
|
||||
GetCaster()->GetThreatMgr().modifyThreatPercent(target, -20);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -618,7 +618,7 @@ public:
|
||||
me->SetDisableGravity(false);
|
||||
break;
|
||||
case EVENT_START_PHASE_3_LAND:
|
||||
me->getThreatMgr().ResetAllThreat();
|
||||
me->GetThreatMgr().ResetAllThreat();
|
||||
me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->SetTarget(me->GetVictim()->GetGUID());
|
||||
AttackStart(me->GetVictim());
|
||||
@@ -631,7 +631,7 @@ public:
|
||||
// ///////////////////////////
|
||||
case EVENT_PHASE_4_START:
|
||||
me->CastSpell(me, SPELL_DEMON_TRANSFORM_1, true);
|
||||
me->getThreatMgr().ResetAllThreat();
|
||||
me->GetThreatMgr().ResetAllThreat();
|
||||
me->GetMotionMaster()->MoveChase(me->GetVictim(), 35.0f);
|
||||
events.Reset();
|
||||
events.ScheduleEvent(EVENT_SPELL_SHADOW_BLAST, 11000);
|
||||
@@ -654,7 +654,7 @@ public:
|
||||
break;
|
||||
case EVENT_REMOVE_DEMON_FORM:
|
||||
me->CastSpell(me, SPELL_DEMON_TRANSFORM_1, true);
|
||||
me->getThreatMgr().ResetAllThreat();
|
||||
me->GetThreatMgr().ResetAllThreat();
|
||||
events.Reset();
|
||||
if (summons.HasEntry(NPC_MAIEV_SHADOWSONG))
|
||||
{
|
||||
|
||||
@@ -126,7 +126,7 @@ public:
|
||||
Unit* FindHatefulStrikeTarget()
|
||||
{
|
||||
Unit* target = nullptr;
|
||||
ThreatContainer::StorageType const& threatlist = me->getThreatMgr().getThreatList();
|
||||
ThreatContainer::StorageType const& threatlist = me->GetThreatMgr().getThreatList();
|
||||
for (ThreatContainer::StorageType::const_iterator i = threatlist.begin(); i != threatlist.end(); ++i)
|
||||
{
|
||||
Unit* unit = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid());
|
||||
|
||||
Reference in New Issue
Block a user