Core/Spells: Prevent sending aura update packets for auras that aren't visible on client

Port From (https://github.com/TrinityCore/TrinityCore/commit/e9470cd817890334a6a6d1609896de87e3cea5d4)
This commit is contained in:
Hondacrx
2025-06-08 14:48:11 -04:00
parent 667877ca87
commit b8c7e7b567
+1 -1
View File
@@ -9196,7 +9196,7 @@ namespace Game.Spells
if (effMask != 0)
_spellHitTarget._ApplyAura(aurApp, effMask);
if (aurApp.IsNeedClientUpdate() && aurApp.GetRemoveMode() == AuraRemoveMode.None)
if (aurApp.GetSlot() < SpellConst.MaxAuras && aurApp.IsNeedClientUpdate() && aurApp.GetRemoveMode() == AuraRemoveMode.None)
{
aurApp.ClientUpdate(false);
_spellHitTarget.RemoveVisibleAuraUpdate(aurApp);