Core/Auras: Implement SpellAuraInterruptFlags2::Ground and SpellAuraInterruptFlags2::Swimming (#27193)

This commit is contained in:
Seyden
2021-11-08 10:16:55 +01:00
committed by GitHub
parent 65aee484b9
commit 107f5ce0a4
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -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);
}
+2 -2
View File
@@ -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