From 3d34febd6dc586e8daf8a11b72c831918ec688cd Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 7 Jul 2022 16:03:43 +0200 Subject: Core/Auras: Don't save auras to db with SpellAuraInterruptFlags::LeaveWorld --- src/server/game/Spells/SpellMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index be6ab369a46..32776cc27ea 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3203,6 +3203,10 @@ void SpellMgr::LoadSpellInfoCustomAttributes() } } } + + // Saving to DB happens before removing from world - skip saving these auras + if (spellInfoMutable->HasAuraInterruptFlag(SpellAuraInterruptFlags::LeaveWorld)) + spellInfoMutable->AttributesCu |= SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED; } // addition for binary spells, omit spells triggering other spells -- cgit v1.2.3