From 8e758048ae0fd947062fac81cd3e4a669fa19eb9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 9 Aug 2021 09:48:05 -0400 Subject: [PATCH] Core/Scripts: remove hack that caused aura to not be applied and saved twice on owned auras, causing an error on save Port From (https://github.com/TrinityCore/TrinityCore/commit/181c671924c22fb92e32b96dd0f63d395b13db4f) --- Source/Game/Entities/Unit/Unit.Spells.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Game/Entities/Unit/Unit.Spells.cs b/Source/Game/Entities/Unit/Unit.Spells.cs index 1ba657826..7867674a3 100644 --- a/Source/Game/Entities/Unit/Unit.Spells.cs +++ b/Source/Game/Entities/Unit/Unit.Spells.cs @@ -2139,6 +2139,8 @@ namespace Game.Entities { m_removedAuras.Remove(m_removedAuras.First()); } + + m_removedAurasCount = 0; } public bool HasStealthAura() { return HasAuraType(AuraType.ModStealth); }