Core/Auras: Implement SpellAuraInterruptFlags2::Falling
Port From (https://github.com/TrinityCore/TrinityCore/commit/145bb98ecbc4bb265d5c33cc2bb8358a639d5e98)
This commit is contained in:
@@ -648,6 +648,9 @@ namespace Game.Entities
|
|||||||
_positionUpdateInfo.Relocated = relocated;
|
_positionUpdateInfo.Relocated = relocated;
|
||||||
_positionUpdateInfo.Turned = turn;
|
_positionUpdateInfo.Turned = turn;
|
||||||
|
|
||||||
|
if (IsFalling())
|
||||||
|
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Falling);
|
||||||
|
|
||||||
bool isInWater = IsInWater();
|
bool isInWater = IsInWater();
|
||||||
if (!IsFalling() || isInWater || IsFlying())
|
if (!IsFalling() || isInWater || IsFlying())
|
||||||
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Ground);
|
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Ground);
|
||||||
|
|||||||
Reference in New Issue
Block a user