aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2025-10-21 19:56:28 +0200
committerccrs <ccrs@users.noreply.github.com>2025-10-21 19:56:28 +0200
commit8aa237fbfe1d0ca759f2694d871deb51850a7f13 (patch)
treef0b3ebda104a7563c736e7103a72d7599f785f69
parentd2f20e0a74694ecc344f12c21f613f862ac1fcbf (diff)
Core/Spell: dont force MoveFall on flight auras if the unit can still fly
If either DISABLE_GRAVITY is enabled, or CanFly (movement_template creatures/CAN_FLY players) is still present from other sources (other auras).
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 4a066ff0685..6026ae2e6e6 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -2668,7 +2668,7 @@ void AuraEffect::HandleAuraAllowFlight(AuraApplication const* aurApp, uint8 mode
if (target->SetCanFly(apply))
{
- if (!apply && !target->IsGravityDisabled())
+ if (!apply && !target->IsGravityDisabled() && !target->CanFly())
target->GetMotionMaster()->MoveFall();
}
}