mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
Core/Combat: rename getThreatMgr() to GetThreatMgr() (#11758)
This commit is contained in:
@@ -935,7 +935,7 @@ class spell_gen_knock_away : public SpellScript
|
||||
PreventHitDefaultEffect(effIndex);
|
||||
if (Unit* target = GetHitUnit())
|
||||
if (Creature* caster = GetCaster()->ToCreature())
|
||||
caster->getThreatMgr().modifyThreatPercent(target, -25); // Xinef: amount confirmed by onyxia and void reaver notes
|
||||
caster->GetThreatMgr().modifyThreatPercent(target, -25); // Xinef: amount confirmed by onyxia and void reaver notes
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -1041,7 +1041,7 @@ class spell_gen_hate_to_zero : public SpellScript
|
||||
PreventHitDefaultEffect(effIndex);
|
||||
if (Unit* target = GetHitUnit())
|
||||
if (Creature* caster = GetCaster()->ToCreature())
|
||||
caster->getThreatMgr().modifyThreatPercent(target, -100);
|
||||
caster->GetThreatMgr().modifyThreatPercent(target, -100);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -698,7 +698,7 @@ class spell_warl_soulshatter : public SpellScript
|
||||
Unit* caster = GetCaster();
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
if (target->CanHaveThreatList() && target->getThreatMgr().getThreat(caster) > 0.0f)
|
||||
if (target->CanHaveThreatList() && target->GetThreatMgr().getThreat(caster) > 0.0f)
|
||||
caster->CastSpell(target, SPELL_WARLOCK_SOULSHATTER, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user