Core/Spells: Skip handling apply aura spell effects if aura was removed earlier in script by PreventHitAura

(cherry picked from commit adb63648f1)
This commit is contained in:
Shauren
2025-02-12 21:35:36 +01:00
committed by Ovahlord
parent 90893258bd
commit 6924fd0dc6

View File

@@ -1070,7 +1070,7 @@ void Spell::EffectApplyAura()
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
if (!_spellAura || !unitTarget)
if (!_spellAura || _spellAura->IsRemoved() || !unitTarget)
return;
// register target/effect on aura