From aa4975855c92a04c7518921157e3d03896ddefd1 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 8 Jun 2025 14:53:30 -0400 Subject: [PATCH] Core/Spells: Prevent even more cases of sending aura update packets for auras that aren't visible on client Port From (https://github.com/TrinityCore/TrinityCore/commit/380b1f8986c20803ae7d8c2387d31a2645a7e508) --- Source/Game/Spells/Auras/Aura.cs | 2 +- Source/Game/Spells/Spell.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Spells/Auras/Aura.cs b/Source/Game/Spells/Auras/Aura.cs index d7110c9d6..ccffb313d 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -221,7 +221,7 @@ namespace Game.Spells public void SetNeedClientUpdate() { - if (_needClientUpdate || GetRemoveMode() != AuraRemoveMode.None) + if (_needClientUpdate || GetSlot() >= SpellConst.MaxAuras || GetRemoveMode() != AuraRemoveMode.None) return; _needClientUpdate = true; diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 9727ee546..0177409de 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -9196,7 +9196,7 @@ namespace Game.Spells if (effMask != 0) _spellHitTarget._ApplyAura(aurApp, effMask); - if (aurApp.GetSlot() < SpellConst.MaxAuras && aurApp.IsNeedClientUpdate() && aurApp.GetRemoveMode() == AuraRemoveMode.None) + if (aurApp.IsNeedClientUpdate() && aurApp.GetRemoveMode() == AuraRemoveMode.None) { aurApp.ClientUpdate(false); _spellHitTarget.RemoveVisibleAuraUpdate(aurApp);