Skip to content

Commit c9d14d2

Browse files
committed
Fix jump height calculations for jumps with delayed start time
1 parent f73c541 commit c9d14d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WowPacketParser/Parsing/Parsers/MovementHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public static void PrintComputedSplineMovementParams(Packet packet, double dista
343343
packet.AddValue("Computed Distance", distance, indexes);
344344
packet.AddValue("Computed Speed", (distance / monsterMove.MoveTime) * 1000, indexes);
345345
if (monsterMove.Jump != null && monsterMove.Flags.HasAnyFlag(UniversalSplineFlag.Parabolic))
346-
PrintComputedSplineMovementJumpHeight(packet, monsterMove.MoveTime, monsterMove.Jump.Gravity, indexes);
346+
PrintComputedSplineMovementJumpHeight(packet, monsterMove.MoveTime - monsterMove.Jump.StartTime, monsterMove.Jump.Gravity, indexes);
347347
else if (monsterMove.SpellEffect != null && monsterMove.SpellEffect.JumpGravity > 0)
348348
PrintComputedSplineMovementJumpHeight(packet, monsterMove.MoveTime, monsterMove.SpellEffect.JumpGravity, indexes);
349349
}

0 commit comments

Comments
 (0)