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

Closes #30633
This commit is contained in:
Shauren
2025-01-23 23:15:05 +01:00
parent c9456ce826
commit e9470cd817

View File

@@ -3024,7 +3024,7 @@ void Spell::TargetInfo::DoDamageAndTriggers(Spell* spell)
if (effMask)
_spellHitTarget->_ApplyAura(aurApp, effMask);
if (aurApp->IsNeedClientUpdate() && aurApp->GetRemoveMode() == AURA_REMOVE_NONE)
if (aurApp->GetSlot() < MAX_AURAS && aurApp->IsNeedClientUpdate() && aurApp->GetRemoveMode() == AURA_REMOVE_NONE)
{
aurApp->ClientUpdate(false);
_spellHitTarget->RemoveVisibleAuraUpdate(aurApp);