mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
Core/Combat: rename getThreatMgr() to GetThreatMgr() (#11758)
This commit is contained in:
@@ -207,8 +207,8 @@ bool TemporaryThreatModifierEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
|
||||
{
|
||||
if (m_owner.IsInCombatWith(victim))
|
||||
{
|
||||
m_owner.getThreatMgr().modifyThreatPercent(victim, -100); // Reset threat to zero.
|
||||
m_owner.getThreatMgr().addThreat(victim, m_threatValue); // Set to the previous value it had, first before modification.
|
||||
m_owner.GetThreatMgr().modifyThreatPercent(victim, -100); // Reset threat to zero.
|
||||
m_owner.GetThreatMgr().addThreat(victim, m_threatValue); // Set to the previous value it had, first before modification.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3548,11 +3548,11 @@ void Creature::ModifyThreatPercentTemp(Unit* victim, int32 percent, Milliseconds
|
||||
{
|
||||
if (victim)
|
||||
{
|
||||
float currentThreat = getThreatMgr().getThreat(victim);
|
||||
float currentThreat = GetThreatMgr().getThreat(victim);
|
||||
|
||||
if (percent != 0.0f)
|
||||
{
|
||||
getThreatMgr().modifyThreatPercent(victim, percent);
|
||||
GetThreatMgr().modifyThreatPercent(victim, percent);
|
||||
}
|
||||
|
||||
TemporaryThreatModifierEvent* pEvent = new TemporaryThreatModifierEvent(*this, victim->GetGUID(), currentThreat);
|
||||
|
||||
Reference in New Issue
Block a user