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)
This commit is contained in:
Hondacrx
2025-06-08 14:53:30 -04:00
parent 144cd4151b
commit aa4975855c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);