mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix the bug that player get fall damage after taxi flight.
--HG-- branch : trunk
This commit is contained in:
@@ -251,6 +251,7 @@ void FlightPathMovementGenerator::Initialize(Player &player)
|
||||
player.getHostilRefManager().setOnlineOfflineState(false);
|
||||
player.addUnitState(UNIT_STAT_IN_FLIGHT);
|
||||
player.SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_DISABLE_MOVE | UNIT_FLAG_TAXI_FLIGHT);
|
||||
player.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
|
||||
LoadPath(player);
|
||||
Traveller<Player> traveller(player);
|
||||
// do not send movement, it was sent already
|
||||
@@ -270,6 +271,7 @@ void FlightPathMovementGenerator::Finalize(Player & player)
|
||||
|
||||
player.Unmount();
|
||||
player.RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_DISABLE_MOVE | UNIT_FLAG_TAXI_FLIGHT);
|
||||
player.RemoveUnitMovementFlag(MOVEMENTFLAG_FLYING2);
|
||||
|
||||
if(player.m_taxi.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user