mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Spells: Normalize Z for last point in a charge path
Normalize the new point that 124398feef adds to a charge path.
This commit is contained in:
@@ -924,6 +924,7 @@ void PathGenerator::ReducePathLenghtByDist(float dist)
|
||||
float step = dist / len;
|
||||
// same as nextVec
|
||||
_pathPoints[i + 1] -= diffVec * step;
|
||||
_sourceUnit->UpdateAllowedPositionZ(_pathPoints[i + 1].x, _pathPoints[i + 1].y, _pathPoints[i + 1].z);
|
||||
_pathPoints.resize(i + 2);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user