aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-07-13 20:57:11 +0200
committerQAston <qaston@gmail.com>2011-07-13 20:57:11 +0200
commit5f565709cf3b8d05734ea82506ad670cde74f20e (patch)
tree872fd6b3d0865127165615e2cda3090e177b9912 /src
parentf70875510af223168a8bc8c194001f7171aa7264 (diff)
Core/Auras: Correct display stackable aura amount in client when aura has 1 stack.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuras.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 0c457697805..ac6a54c11a7 100755
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -193,8 +193,9 @@ void AuraApplication::BuildUpdatePacket(ByteBuffer& data, bool remove) const
flags |= AFLAG_DURATION;
data << uint8(flags);
data << uint8(aura->GetCasterLevel());
+ // send stack amount for aura which could be stacked (never 0 - causes incorrect display) or charges
// stack amount has priority over charges (checked on retail with spell 50262)
- data << uint8(aura->GetStackAmount() > 1 ? aura->GetStackAmount() : (aura->IsUsingCharges()) ? aura->GetCharges() : 0);
+ data << uint8(aura->GetSpellProto()->StackAmount ? aura->GetStackAmount() : aura->GetCharges());
if (!(flags & AFLAG_CASTER))
data.appendPackGUID(aura->GetCasterGUID());