aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-15 16:20:10 +0100
committerQAston <none@none>2009-03-15 16:20:10 +0100
commitd910fc951e0ccc74f904700d28e7dc5faed5462e (patch)
tree6a879bf0067a611f6afba098ba3b1a77ddb70c84 /src/game/Player.cpp
parent8b246d66d31b8f99544a4e7b74ccfa16b9c0f3c4 (diff)
*Auras by caster are now shown correctly (doublesized).
*First rank of Psychic Horror now procs correctly. *Mana drain effects amount of damage is now correct. *Raczman is now satisfied. --HG-- branch : trunk rename : sql/updates/1910_world.sql => sql/updates/1912_world.sql
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index b45527b9401..a7828439383 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -19282,9 +19282,10 @@ void Player::SendAurasForTarget(Unit *target)
// charges
data << uint8(aura->GetAuraCharges());
- if(!(itr->second.m_Flags & AFLAG_NOT_CASTER))
+ if(!(itr->second.m_Flags & AFLAG_CASTER))
{
- data << uint8(0); // packed GUID of someone (caster?)
+ if (Unit * caster = aura->GetCaster())
+ data.append(caster->GetPackGUID());
}
if(itr->second.m_Flags & AFLAG_DURATION) // include aura duration