From ecdd12ea6c0812fe2a57c98309ee782e7d20c633 Mon Sep 17 00:00:00 2001 From: Aqua Deus <95978183+aquadeus@users.noreply.github.com> Date: Sat, 24 May 2025 19:15:58 +0200 Subject: Scripts/Spells: Fix warrior talent Avatar removing movement impairing auras (#30985) --- src/server/scripts/Spells/spell_warrior.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index 16df4f1dc3b..00fdaa531fd 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -83,6 +83,20 @@ enum WarriorMisc SPELL_VISUAL_BLAZING_CHARGE = 26423 }; +// 107574 - Avatar +class spell_warr_avatar : public SpellScript +{ + void HandleRemoveImpairingAuras(SpellEffIndex /*effIndex*/) const + { + GetCaster()->RemoveMovementImpairingAuras(true); + } + + void Register() override + { + OnEffectHitTarget += SpellEffectFn(spell_warr_avatar::HandleRemoveImpairingAuras, EFFECT_5, SPELL_EFFECT_SCRIPT_EFFECT); + } +}; + // 23881 - Bloodthirst class spell_warr_bloodthirst : public SpellScript { @@ -860,6 +874,7 @@ class spell_warr_victory_rush : public SpellScript void AddSC_warrior_spell_scripts() { + RegisterSpellScript(spell_warr_avatar); RegisterSpellScript(spell_warr_bloodthirst); RegisterSpellScript(spell_warr_brutal_vitality); RegisterSpellScript(spell_warr_charge); -- cgit v1.2.3