From 19e274cb5dfd4915adcad11ef40354e710cbe3ec Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 5 Dec 2021 16:37:54 +0100 Subject: [PATCH] Core/Spells: corrected implementation of SPELL_AURA_FIXATE --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 0e09a7e5ed..7f4fca232b 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -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(); } /*****************************/