Jump to content

[fix][8535] Player::SendAurasForTarget


Guest SilverIce
 Share

Recommended Posts

this patch will correct show spell charges/stack amount

Who has been writing this patch? Me

SMSG_AURA_UPDATE_ALL and SMSG_AURA_UPDATE packets has almost same structure, but SMSG_AURA_UPDATE_ALL used to send all existing auras.

It used when some unit became visible for player.

that format was already corrected at [8029] - i just make the same changes for SMSG_AURA_UPDATE_ALL

--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -18480,7 +18480,10 @@ void Player::SendAurasForTarget(Unit *target)
                    // level
                    data << uint8(aura->GetAuraLevel());
                    // charges
-                    data << uint8(aura->GetAuraCharges());
+                    if (aura->GetAuraCharges())
+                        data << uint8(aura->GetAuraCharges() * aura->GetStackAmount());
+                    else
+                        data << uint8(aura->GetStackAmount());

                    if(!(auraFlags & AFLAG_NOT_CASTER))
                    {

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use