Jump to content

[SMSG_AURA_UPDATE] Send packed caster GUID for AFLAG_NOT_CASTER


Guest XTZGZoReX

Recommended Posts

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index c45fc3f..e2bb2a0 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -19350,9 +19350,9 @@ void Player::SendAurasForTarget(Unit *target)
                    else
                        data << uint8(aura->GetStackAmount());

-                    if(!(auraFlags & AFLAG_NOT_CASTER))
+                    if(!(auraFlags & AFLAG_NOT_CASTER))     // packed GUID of caster
                    {
-                        data << uint8(0);                   // packed GUID of someone (caster?)
+                        data.appendPackGUID(aura->GetCasterGUID());
                    }

                    if(auraFlags & AFLAG_DURATION)          // include aura duration
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 18b4af6..3ee1892 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1249,7 +1249,7 @@ void Aura::SendAuraUpdate(bool remove)

    if(!(auraFlags & AFLAG_NOT_CASTER))
    {
-        data << uint8(0);                                   // pguid
+        data.appendPackGUID(GetCasterGUID());
    }

    if(auraFlags & AFLAG_DURATION)

Test, report back, etc.

Link to comment
Share on other sites

×
×
  • 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