Core/Auras: Implement SpellAuraInterruptFlags2::Ground and SpellAuraInterruptFlags2::Swimming
Port From (https://github.com/TrinityCore/TrinityCore/commit/107f5ce0a40fdbd325cdb467baaee841d39e0958)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user