refactor(Core/Combat): Code style and improvement of ThreatMgr (#12992)
This commit is contained in:
parent
ddcf0e79b6
commit
1f472bddd3
61 changed files with 212 additions and 196 deletions
|
|
@ -699,7 +699,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue