mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Auras: Fixed client freezes happening with scalable auras that do not have all effects applied on all targets
Closes #8913
This commit is contained in:
@@ -212,8 +212,9 @@ void AuraApplication::BuildUpdatePacket(ByteBuffer& data, bool remove) const
|
||||
|
||||
if (flags & AFLAG_ANY_EFFECT_AMOUNT_SENT)
|
||||
for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
if (AuraEffect const* eff = aura->GetEffect(i)) // NULL if effect flag not set
|
||||
data << int32(eff->GetAmount());
|
||||
if (AuraEffect const* eff = aura->GetEffect(i))
|
||||
if (HasEffect(i)) // Not all of aura's effects have to be applied on every target
|
||||
data << int32(eff->GetAmount());
|
||||
}
|
||||
|
||||
void AuraApplication::ClientUpdate(bool remove)
|
||||
|
||||
Reference in New Issue
Block a user