Core/Auras: Implement SpellAuraInterruptFlags2::Ground and SpellAuraInterruptFlags2::Swimming

Port From (https://github.com/TrinityCore/TrinityCore/commit/107f5ce0a40fdbd325cdb467baaee841d39e0958)
This commit is contained in:
hondacrx
2021-11-08 10:49:00 -05:00
parent 9127283ae1
commit 563ab5da05
2 changed files with 9 additions and 2 deletions
@@ -163,9 +163,9 @@ namespace Framework.Constants
{
None = 0,
Falling = 0x01, // NYI
Swimming = 0x02, // NYI
Swimming = 0x02,
NotMoving = 0x04, // NYI
Ground = 0x08, // NYI
Ground = 0x08,
Transform = 0x10, // NYI
Jump = 0x20,
ChangeSpec = 0x40, // NYI
@@ -617,6 +617,13 @@ namespace Game.Entities
UpdatePositionData();
bool isInWater = IsInWater();
if (!IsFalling() || isInWater || IsFlying())
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Ground);
if (isInWater)
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Swimming);
return (relocated || turn);
}