From 768ed2cbdcaadf6a3eefab84ef94ca5029755b5f Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 3 Dec 2021 16:12:10 +0100 Subject: Core/Spells: Use 3D distance for calculating speed from movement time instead of 2D --- src/server/game/Spells/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 8a8c9c7af80..2b6649bcd3f 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -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 arrivalCast; if (effectInfo->TriggerSpell) -- cgit v1.2.3