Core/Units: Don't change hover anim for vehicle passengers
Port From (https://github.com/TrinityCore/TrinityCore/commit/ac9d659ad8857d3f0dc13c477b381f38c6aa358f)
This commit is contained in:
@@ -915,6 +915,8 @@ namespace Game.Entities
|
||||
SendMessageToSet(packet, true);
|
||||
}
|
||||
|
||||
if (GetVehicle() == null)
|
||||
{
|
||||
if (IsAlive())
|
||||
{
|
||||
if (IsGravityDisabled() || IsHovering())
|
||||
@@ -924,6 +926,7 @@ namespace Game.Entities
|
||||
}
|
||||
else if (IsPlayer()) // To update player who dies while flying/hovering
|
||||
SetPlayHoverAnim(false, false);
|
||||
}
|
||||
|
||||
if (IsCreature() && updateAnimTier && IsAlive() && !HasUnitState(UnitState.Root))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user