Core/Spells: Use 3D distance for calculating speed from movement time instead of 2D

Port From (https://github.com/TrinityCore/TrinityCore/commit/768ed2cbdcaadf6a3eefab84ef94ca5029755b5f)
This commit is contained in:
hondacrx
2021-12-07 14:16:21 -05:00
parent a2fdd2eccf
commit 8c8b965b7c
+1 -1
View File
@@ -5533,7 +5533,7 @@ namespace Game.Spells
float speed = jumpParams.Speed;
if (jumpParams.TreatSpeedAsMoveTimeSeconds)
speed = unitCaster.GetExactDist2d(destTarget) / jumpParams.Speed;
speed = unitCaster.GetExactDist(destTarget) / jumpParams.Speed;
Optional<JumpArrivalCastArgs> arrivalCast = new();
if (effectInfo.TriggerSpell != 0)