Core/Auras: Implement SpellAuraInterruptFlags2::Falling

Port From (https://github.com/TrinityCore/TrinityCore/commit/145bb98ecbc4bb265d5c33cc2bb8358a639d5e98)
This commit is contained in:
hondacrx
2023-05-21 17:22:54 -04:00
parent 0cfe1dc508
commit 53623d94dc
@@ -648,6 +648,9 @@ namespace Game.Entities
_positionUpdateInfo.Relocated = relocated;
_positionUpdateInfo.Turned = turn;
if (IsFalling())
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Falling);
bool isInWater = IsInWater();
if (!IsFalling() || isInWater || IsFlying())
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Ground);