From 99c47ca94daa061e89cba8e24eecf1af51a403c4 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 2 Apr 2022 17:09:51 +0200 Subject: [PATCH] f94ce7954377e4486dae2c2603c0898dc12b2a49 followup --- src/server/scripts/Spells/spell_warrior.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index 4344e88dcc4..6b8bacb783d 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -1068,17 +1068,16 @@ class spell_warr_enraged_regeneration : public SpellScript } }; - class spell_warr_enraged_regeneration_AuraScript: public AuraScript { void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { - GetCaster()->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, MECHANIC_ENRAGED, true); + GetTarget()->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, MECHANIC_ENRAGED, true); } void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { - GetCaster()->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, MECHANIC_ENRAGED, false); + GetTarget()->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, MECHANIC_ENRAGED, false); } void Register() override