mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 22:49:39 -04:00
Core/Auras: Implement SpellAuraInterruptFlags2::Ground and SpellAuraInterruptFlags2::Swimming (#27193)
This commit is contained in:
@@ -12060,6 +12060,13 @@ bool Unit::UpdatePosition(float x, float y, float z, float orientation, bool tel
|
||||
|
||||
UpdatePositionData();
|
||||
|
||||
bool isInWater = IsInWater();
|
||||
if (!IsFalling() || isInWater || IsFlying())
|
||||
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::Ground);
|
||||
|
||||
if (isInWater)
|
||||
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::Swimming);
|
||||
|
||||
return (relocated || turn);
|
||||
}
|
||||
|
||||
|
||||
@@ -112,9 +112,9 @@ enum class SpellAuraInterruptFlags2 : uint32
|
||||
{
|
||||
None = 0,
|
||||
Falling = 0x00000001, // NYI
|
||||
Swimming = 0x00000002, // NYI
|
||||
Swimming = 0x00000002,
|
||||
NotMoving = 0x00000004, // NYI
|
||||
Ground = 0x00000008, // NYI
|
||||
Ground = 0x00000008,
|
||||
Transform = 0x00000010, // NYI
|
||||
Jump = 0x00000020,
|
||||
ChangeSpec = 0x00000040, // NYI
|
||||
|
||||
Reference in New Issue
Block a user