mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Auras: Implement SpellAuraInterruptFlags2::Falling (#28941)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user