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

Port From (https://github.com/TrinityCore/TrinityCore/commit/adb63648f14bab0c757afb4429337dda232dab7a)
This commit is contained in:
Hondacrx
2025-06-08 19:06:03 -04:00
parent 90fbffbcc0
commit aeaaf2a192
+1 -1
View File
@@ -677,7 +677,7 @@ namespace Game.Spells
if (effectHandleMode != SpellEffectHandleMode.HitTarget)
return;
if (spellAura == null || unitTarget == null)
if (spellAura == null || spellAura.IsRemoved() || unitTarget == null)
return;
// register target/effect on aura