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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user