Remove auras interrupted by falling when we fall to the ground or water

Port From (https://github.com/TrinityCore/TrinityCore/commit/825719c25ca82ee94af85d1a7f2e99ce7ef5c9df)
This commit is contained in:
hondacrx
2019-08-31 15:29:15 -04:00
parent 07c46b3964
commit 86808ec9a5
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -136,6 +136,10 @@ namespace Game
if (opcode == ClientOpcodes.MoveFallLand && plrMover && !plrMover.IsInFlight())
plrMover.HandleFall(movementInfo);
// interrupt parachutes upon falling or landing in water
if (opcode == ClientOpcodes.MoveFallLand || opcode == ClientOpcodes.MoveStartSwim)
mover.RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags.Landing); // Parachutes
if (plrMover && movementInfo.HasMovementFlag(MovementFlag.Swimming) != plrMover.IsInWater())
{
// now client not include swimming flag in case jumping under water