mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
fix(Core/Movement): Add safeguards against root freezes (#23117)
This commit is contained in:
@@ -1644,6 +1644,7 @@ public:
|
||||
[[nodiscard]] virtual bool CanFly() const = 0;
|
||||
[[nodiscard]] bool IsFlying() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_FLYING | MOVEMENTFLAG_DISABLE_GRAVITY); }
|
||||
[[nodiscard]] bool IsFalling() const;
|
||||
[[nodiscard]] bool IsRooted() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_ROOT); }
|
||||
|
||||
[[nodiscard]] float GetHoverHeight() const { return IsHovering() ? GetFloatValue(UNIT_FIELD_HOVERHEIGHT) : 0.0f; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user