Core/Units: flight and hover checks will now consider movement template data as well as manually set flight states
Port From (https://github.com/TrinityCore/TrinityCore/commit/294657f7dd4d2db1ca6dcf66f0b0895c6ba92949)
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Game.Entities
|
||||
{
|
||||
public partial class Unit
|
||||
{
|
||||
public bool IsLevitating()
|
||||
public bool IsGravityDisabled()
|
||||
{
|
||||
return m_movementInfo.HasMovementFlag(MovementFlag.DisableGravity);
|
||||
}
|
||||
@@ -661,7 +661,7 @@ namespace Game.Entities
|
||||
|
||||
public bool SetDisableGravity(bool disable)
|
||||
{
|
||||
if (disable == IsLevitating())
|
||||
if (disable == IsGravityDisabled())
|
||||
return false;
|
||||
|
||||
if (disable)
|
||||
|
||||
Reference in New Issue
Block a user