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
@@ -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);
}