Core/Units: flight and hover checks will now consider movement template data as well as manually set flight states

- manually set flight states via auras and scripts will no longer be ignored
- restored movement template consideration when generating pathings
- renamed IsLevitating to IsGravityDisabled to reflect the referenced movement flag's name
This commit is contained in:
Ovah
2020-06-01 15:58:31 +02:00
committed by GitHub
parent 48c5c0d7a2
commit 43ef610fe0
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -13090,7 +13090,7 @@ bool Unit::SetWalk(bool enable)
bool Unit::SetDisableGravity(bool disable, bool /*packetOnly = false*/)
{
if (disable == IsLevitating())
if (disable == IsGravityDisabled())
return false;
if (disable)