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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user