aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyrserth <wyrserth@protonmail.com>2019-07-07 00:06:49 +0200
committerWyrserth <wyrserth@protonmail.com>2019-07-07 00:06:49 +0200
commit1d1b77c3f0c7625228f328cf894610c14a54c308 (patch)
tree2fb9bbdc9e2df5aa008990da48b5173308e75931
parent6ef1b3e6c6d51635dc4ba4cf4f9fb9565d390807 (diff)
Core/Spell: don't send duration for auras caused by dynobjects.
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 42c4567d5c2..c13248c96af 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -234,7 +234,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 << uint8(flags);
data << uint8(aura->GetCasterLevel());