Fixes creatures aggro range, Wrong check on pathpoints, and a crash when there is no unitCaster.
This commit is contained in:
@@ -952,7 +952,7 @@ namespace Game.Movement
|
||||
return;
|
||||
|
||||
// check if we even need to do anything
|
||||
if ((_pathPoints[0] - target).LengthSquared() >= distSq)
|
||||
if ((_pathPoints[_pathPoints.Length - 1] - target).LengthSquared() >= distSq)
|
||||
return;
|
||||
|
||||
int i = _pathPoints.Length - 1;
|
||||
|
||||
Reference in New Issue
Block a user