mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Spells: Use 3D distance for calculating speed from movement time instead of 2D
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user