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:
Shauren
2013-03-22 21:21:09 +01:00
parent 15a249e28c
commit d40a16a95f

View File

@@ -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)