mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 16:43:47 +00:00
refactor(Core/Combat): implement compatiblity layer for ResetAllThreat() (#11778)
* implement ResetAllThreat() * .
This commit is contained in:
@@ -1674,7 +1674,7 @@ public:
|
||||
if (!target || !caster)
|
||||
return;
|
||||
|
||||
caster->getThreatMgr().resetAllAggro();
|
||||
caster->getThreatMgr().ResetAllThreat();
|
||||
caster->GetAI()->AttackStart(target); // Chase target
|
||||
caster->AddThreat(target, 10000000.0f);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ public:
|
||||
heat->ModStackAmount(-1);
|
||||
}
|
||||
me->CastSpell(me, SPELL_MOLTEN, true);
|
||||
me->getThreatMgr().resetAllAggro();
|
||||
me->getThreatMgr().ResetAllThreat();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1158,7 +1158,7 @@ public:
|
||||
}
|
||||
}
|
||||
_playerAttack = true;
|
||||
me->getThreatMgr().resetAllAggro();
|
||||
me->getThreatMgr().ResetAllThreat();
|
||||
me->CallForHelp(40.0f);
|
||||
AttackStart(who);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user