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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user