Core/Auras: Implement SpellAuraInterruptFlags2::Ground and SpellAuraInterruptFlags2::Swimming
Port From (https://github.com/TrinityCore/TrinityCore/commit/107f5ce0a40fdbd325cdb467baaee841d39e0958)
This commit is contained in:
@@ -163,9 +163,9 @@ namespace Framework.Constants
|
|||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
Falling = 0x01, // NYI
|
Falling = 0x01, // NYI
|
||||||
Swimming = 0x02, // NYI
|
Swimming = 0x02,
|
||||||
NotMoving = 0x04, // NYI
|
NotMoving = 0x04, // NYI
|
||||||
Ground = 0x08, // NYI
|
Ground = 0x08,
|
||||||
Transform = 0x10, // NYI
|
Transform = 0x10, // NYI
|
||||||
Jump = 0x20,
|
Jump = 0x20,
|
||||||
ChangeSpec = 0x40, // NYI
|
ChangeSpec = 0x40, // NYI
|
||||||
|
|||||||
@@ -617,6 +617,13 @@ namespace Game.Entities
|
|||||||
|
|
||||||
UpdatePositionData();
|
UpdatePositionData();
|
||||||
|
|
||||||
|
bool isInWater = IsInWater();
|
||||||
|
if (!IsFalling() || isInWater || IsFlying())
|
||||||
|
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Ground);
|
||||||
|
|
||||||
|
if (isInWater)
|
||||||
|
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Swimming);
|
||||||
|
|
||||||
return (relocated || turn);
|
return (relocated || turn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user