mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*fix bug "cant cast or logout till you move a bit if someone dismounted near you from a flying mount"
--HG-- branch : trunk
This commit is contained in:
@@ -3976,14 +3976,17 @@ void AuraEffect::HandleAuraModIncreaseFlightSpeed(AuraApplication const * aurApp
|
||||
// do not remove unit flag if there are more than this auraEffect of that kind on unit on unit
|
||||
if (mode & AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK && (apply || (!target->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) && !target->HasAuraType(SPELL_AURA_FLY))))
|
||||
{
|
||||
WorldPacket data;
|
||||
if(apply)
|
||||
data.Initialize(SMSG_MOVE_SET_CAN_FLY, 12);
|
||||
else
|
||||
data.Initialize(SMSG_MOVE_UNSET_CAN_FLY, 12);
|
||||
data.append(target->GetPackGUID());
|
||||
data << uint32(0); // unknown
|
||||
target->SendMessageToSet(&data, true);
|
||||
if(Player *plr = target->m_movedPlayer)
|
||||
{
|
||||
WorldPacket data;
|
||||
if(apply)
|
||||
data.Initialize(SMSG_MOVE_SET_CAN_FLY, 12);
|
||||
else
|
||||
data.Initialize(SMSG_MOVE_UNSET_CAN_FLY, 12);
|
||||
data.append(plr->GetPackGUID());
|
||||
data << uint32(0); // unknown
|
||||
plr->SendDirectMessage(&data);
|
||||
}
|
||||
}
|
||||
|
||||
if (mode & AURA_EFFECT_HANDLE_REAL)
|
||||
|
||||
Reference in New Issue
Block a user