mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 12:27:48 +00:00
refactor(Core/Combat): implement compatiblity layer for ResetAllThreat() (#11778)
* implement ResetAllThreat() * .
This commit is contained in:
@@ -930,7 +930,7 @@ public:
|
||||
ScriptedAI::AttackStart(who);
|
||||
if (!targetGUID)
|
||||
{
|
||||
me->getThreatMgr().resetAllAggro();
|
||||
me->getThreatMgr().ResetAllThreat();
|
||||
me->AddThreat(who, 1000000.0f);
|
||||
targetGUID = who->GetGUID();
|
||||
}
|
||||
|
||||
@@ -1779,7 +1779,7 @@ public:
|
||||
for (ThreatContainer::StorageType::const_iterator iter = target_tl.begin(); iter != target_tl.end(); ++iter)
|
||||
me->getThreatMgr().addThreat((*iter)->getTarget(), (*iter)->getThreat());
|
||||
|
||||
c->getThreatMgr().resetAllAggro();
|
||||
c->getThreatMgr().ResetAllThreat();
|
||||
for (ThreatContainer::StorageType::const_iterator iter = me_tl.begin(); iter != me_tl.end(); ++iter)
|
||||
c->getThreatMgr().addThreat((*iter)->getTarget(), (*iter)->getThreat());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user