Core/Spell: don't send duration for auras caused by dynobjects.

This commit is contained in:
Wyrserth
2019-07-07 00:06:49 +02:00
committed by Ovahlord
parent 49931a8765
commit 2c5dc57d22

View File

@@ -196,7 +196,7 @@ void AuraApplication::BuildUpdatePacket(ByteBuffer& data, bool remove) const
Aura const* aura = GetBase();
data << uint32(aura->GetId());
uint32 flags = _flags;
if (aura->GetMaxDuration() > 0 && !aura->GetSpellInfo()->HasAttribute(SPELL_ATTR5_HIDE_DURATION))
if (aura->GetType() != DYNOBJ_AURA_TYPE && aura->GetMaxDuration() > 0 && !aura->GetSpellInfo()->HasAttribute(SPELL_ATTR5_HIDE_DURATION))
flags |= AFLAG_DURATION;
data << uint16(flags);
data << uint8(aura->GetCasterLevel());