From 866b81af86447497777034c78eda6ec13d836457 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 4 Mar 2021 21:53:18 -0500 Subject: [PATCH] Core/Movement: Allow entering water from flying mounts and druid flight form Port From (https://github.com/TrinityCore/TrinityCore/commit/a37eb18008100f3b351c1046effdcea911cf4071) --- Source/Game/Spells/Auras/AuraEffect.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index 87a353e17..d92d22af3 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -2218,6 +2218,8 @@ namespace Game.Spells return; } + target.SetCanTransitionBetweenSwimAndFly(apply); + if (target.SetCanFly(apply)) if (!apply && !target.IsLevitating()) target.GetMotionMaster().MoveFall(); @@ -2681,6 +2683,8 @@ namespace Game.Spells // do not remove unit flag if there are more than this auraEffect of that kind on unit on unit if (mode.HasAnyFlag(AuraEffectHandleModes.SendForClientMask) && (apply || (!target.HasAuraType(AuraType.ModIncreaseMountedFlightSpeed) && !target.HasAuraType(AuraType.Fly)))) { + target.SetCanTransitionBetweenSwimAndFly(apply); + if (target.SetCanFly(apply)) if (!apply && !target.IsLevitating()) target.GetMotionMaster().MoveFall();