diff options
| author | ccrs <ccrs@users.noreply.github.com> | 2025-10-21 19:56:28 +0200 |
|---|---|---|
| committer | ccrs <ccrs@users.noreply.github.com> | 2025-10-21 19:56:28 +0200 |
| commit | 8aa237fbfe1d0ca759f2694d871deb51850a7f13 (patch) | |
| tree | f0b3ebda104a7563c736e7103a72d7599f785f69 | |
| parent | d2f20e0a74694ecc344f12c21f613f862ac1fcbf (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.cpp | 2 |
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(); } } |
