Core/Spell: don't send duration for auras caused by dynobjects.
This commit is contained in:
1 parent
49931a8765
commit
2c5dc57d22
1 file changed
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user