diff options
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 9 |
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) |
