aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-21 02:46:48 -0500
committermegamage <none@none>2009-08-21 02:46:48 -0500
commit457f7971de361f05ff02ee2f9552be55867e6bf3 (patch)
treeeb6db3eb086e07ed83f7406b0f330adbbc344ad4 /src/game/SpellAuras.cpp
parentf8bec55205af170e0ca6c112e6b25067115a35fc (diff)
*Fix the bug that Eye of Acherus does not fly in some servers.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index b0c8e75d14a..283847e70c0 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5454,7 +5454,9 @@ void AuraEffect::HandleAuraAllowFlight(bool apply, bool Real, bool /*changeAmoun
if(m_target->GetTypeId() == TYPEID_UNIT)
m_target->SetFlying(apply);
-
+
+ if(Player *plr = m_target->GetMoverSource())
+ {
// allow fly
WorldPacket data;
if(apply)
@@ -5463,7 +5465,10 @@ void AuraEffect::HandleAuraAllowFlight(bool apply, bool Real, bool /*changeAmoun
data.Initialize(SMSG_MOVE_UNSET_CAN_FLY, 12);
data.append(m_target->GetPackGUID());
data << uint32(0); // unk
- m_target->SendMessageToSet(&data, true);
+ plr->SendDirectMessage(&data);
+ }
+
+ //m_target->SendMessageToSet(&data, true);
}
void AuraEffect::HandleModRating(bool apply, bool Real, bool changeAmount)