aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy <Golrag@users.noreply.github.com>2021-02-28 18:50:41 +0100
committerGitHub <noreply@github.com>2021-02-28 18:50:41 +0100
commit2380fc32dd5383b2e385a12e7e76ea0116dc9035 (patch)
tree61af9c5594a1fc2889a0ec9f261b3833a89c45df
parent995fb23bc11e5dff3f21e1afa977934b76482d1b (diff)
Spells/Auras: Dont save SPELL_AURA_BATTLEGROUND_PLAYER_POSITION auras (#26076)
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index b9746233b96..bc73d8b22f2 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -1039,6 +1039,10 @@ bool Aura::CanBeSaved() const
if (HasEffectType(SPELL_AURA_MOD_CHARM) || HasEffectType(SPELL_AURA_AOE_CHARM))
return false;
+ // no battleground player positions
+ if (HasEffectType(SPELL_AURA_BATTLEGROUND_PLAYER_POSITION) || HasEffectType(SPELL_AURA_BATTLEGROUND_PLAYER_POSITION_FACTIONAL))
+ return false;
+
// Incanter's Absorbtion - considering the minimal duration and problems with aura stacking
// we skip saving this aura
// Also for some reason other auras put as MultiSlot crash core on keeping them after restart,