Core/Combat: rename getThreatMgr() to GetThreatMgr() (#11758)
This commit is contained in:
parent
8c058791ed
commit
c5368816fa
67 changed files with 129 additions and 129 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue