diff options
author | Aqua Deus <95978183+aquadeus@users.noreply.github.com> | 2025-05-24 19:15:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-24 19:15:58 +0200 |
commit | ecdd12ea6c0812fe2a57c98309ee782e7d20c633 (patch) | |
tree | e9406ecf9d1946e5ce8e27182e2342896c4c83ae /src | |
parent | dc4740cbb749a36855d8d932ef746112ed18a3ad (diff) |
Scripts/Spells: Fix warrior talent Avatar removing movement impairing auras (#30985)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_warrior.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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); |