From dd988965ff67df273bf990b16f531107d9db6f67 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 1 Apr 2025 12:13:16 +0200 Subject: Scripts/Spells: Remove Elemental Weapons buff when unlrearning the talent --- src/server/scripts/Spells/spell_shaman.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index f5c585edebe..99b348a1f0e 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -1046,9 +1046,15 @@ class spell_sha_elemental_weapons : public AuraScript }); } + void RemoveAllBuffs(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) const + { + GetUnitOwner()->RemoveAurasDueToSpell(SPELL_SHAMAN_ELEMENTAL_WEAPONS_BUFF); + } + void Register() override { OnHeartbeat += AuraHeartbeatFn(spell_sha_elemental_weapons::CheckEnchantments); + AfterEffectRemove += AuraEffectRemoveFn(spell_sha_elemental_weapons::RemoveAllBuffs, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL); } }; -- cgit v1.2.3