Core/Spells: corrected implementation of SPELL_AURA_FIXATE

This commit is contained in:
Ovahlord committed 2021-12-05 16:37:54 +01:00
1 parent 2829aa072c
commit 19e274cb5d
1 file changed
+8 -2
@@ -2908,7 +2908,7 @@ void AuraEffect::HandleModDetaunt(AuraApplication const* aurApp, uint8 mode, boo
caster->GetThreatManager().TauntUpdate();
}
void AuraEffect::HandleAuraFixate(AuraApplication const* aurApp, uint8 mode, bool /*apply*/) const
void AuraEffect::HandleAuraFixate(AuraApplication const* aurApp, uint8 mode, bool apply) const
{
if (!(mode & AURA_EFFECT_HANDLE_REAL))
return;
@@ -2921,7 +2921,13 @@ void AuraEffect::HandleAuraFixate(AuraApplication const* aurApp, uint8 mode, boo
if (!caster || caster->GetTypeId() != TYPEID_UNIT || !caster->IsAlive())
return;
caster->GetThreatManager().TauntUpdate();
if (apply)
{
caster->EngageWithTarget(target);
caster->GetThreatManager().FixateTarget(target);
}
else
caster->GetThreatManager().ClearFixate();
}
/*****************************/