Core/Auras: Implement SpellAuraInterruptFlags2::Falling (#28941)

This commit is contained in:
Teleqraph
2023-05-06 22:54:13 +02:00
committed by GitHub
parent 2b231c9866
commit 145bb98ecb
2 changed files with 4 additions and 1 deletions

View File

@@ -12496,6 +12496,9 @@ bool Unit::UpdatePosition(float x, float y, float z, float orientation, bool tel
_positionUpdateInfo.Relocated = relocated;
_positionUpdateInfo.Turned = turn;
if (IsFalling())
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::Falling);
bool isInWater = IsInWater();
if (!IsFalling() || isInWater || IsFlying())
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::Ground);

View File

@@ -116,7 +116,7 @@ DEFINE_ENUM_FLAG(SpellAuraInterruptFlags);
enum class SpellAuraInterruptFlags2 : uint32
{
None = 0,
Falling = 0x00000001, // NYI
Falling = 0x00000001, // Implemented in Unit::UpdatePosition
Swimming = 0x00000002,
NotMoving = 0x00000004, // NYI
Ground = 0x00000008,