Core/Units: Don't change hover anim for vehicle passengers

Port From (https://github.com/TrinityCore/TrinityCore/commit/ac9d659ad8857d3f0dc13c477b381f38c6aa358f)
This commit is contained in:
Hondacrx
2025-08-20 10:17:02 -04:00
parent 921b3deec4
commit 82a242da97
@@ -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))
{