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

This commit is contained in:
Shauren
2021-12-03 16:12:10 +01:00
parent 910e0b70ef
commit 768ed2cbdc

View File

@@ -5741,7 +5741,7 @@ void Spell::EffectJumpCharge()
float speed = params->Speed;
if (params->TreatSpeedAsMoveTimeSeconds)
speed = unitCaster->GetExactDist2d(destTarget) / params->MoveTimeInSec;
speed = unitCaster->GetExactDist(destTarget) / params->MoveTimeInSec;
Optional<JumpArrivalCastArgs> arrivalCast;
if (effectInfo->TriggerSpell)