aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells
diff options
context:
space:
mode:
authorOvah <dreadkiller@gmx.de>2020-06-01 15:58:31 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-06 19:46:41 +0100
commit294657f7dd4d2db1ca6dcf66f0b0895c6ba92949 (patch)
tree398d4fa0bbbd1c62bcc02df6fa3366b09186eadf /src/server/game/Spells
parent5af8373cce498c14c7ee42066efde30c41a3e934 (diff)
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 (cherry picked from commit 43ef610fe059c3da4cc1ad2036f83cfa67ce0fee)
Diffstat (limited to 'src/server/game/Spells')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index c03f5d38bb2..8328e21890d 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -2585,7 +2585,7 @@ void AuraEffect::HandleAuraAllowFlight(AuraApplication const* aurApp, uint8 mode
if (target->SetCanFly(apply))
{
- if (!apply && !target->IsLevitating())
+ if (!apply && !target->IsGravityDisabled())
target->GetMotionMaster()->MoveFall();
}
}
@@ -3012,7 +3012,7 @@ void AuraEffect::HandleAuraModIncreaseFlightSpeed(AuraApplication const* aurApp,
target->SetCanTransitionBetweenSwimAndFly(apply);
if (target->SetCanFly(apply))
- if (!apply && !target->IsLevitating())
+ if (!apply && !target->IsGravityDisabled())
target->GetMotionMaster()->MoveFall();
}