From 52523ce8ee36c214c61ab1a339dcc11cd7bc27f2 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 9 Jul 2022 12:30:04 -0400 Subject: [PATCH] Core/Auras: Don't save auras to db with SpellAuraInterruptFlags::LeaveWorld Port From (https://github.com/TrinityCore/TrinityCore/commit/3d34febd6dc586e8daf8a11b72c831918ec688cd) --- Source/Game/Spells/SpellManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Game/Spells/SpellManager.cs b/Source/Game/Spells/SpellManager.cs index 7a8ebea63..f416c0697 100644 --- a/Source/Game/Spells/SpellManager.cs +++ b/Source/Game/Spells/SpellManager.cs @@ -2889,6 +2889,10 @@ namespace Game.Entities } } } + + // Saving to DB happens before removing from world - skip saving these auras + if (spellInfo.HasAuraInterruptFlag(SpellAuraInterruptFlags.LeaveWorld)) + spellInfo.AttributesCu |= SpellCustomAttributes.AuraCannotBeSaved; } // addition for binary spells, omit spells triggering other spells