More granular control over pre-teleport delay (#2866)

This commit is contained in:
Jamis
2026-03-02 01:10:14 +11:00
committed by GitHub
parent a51213dceb
commit ea6a9a4af2

View File

@@ -187,9 +187,21 @@ public class PathExecutor
if (waypoint.Type == WaypointType.Teleport.Code)
{
if (CurWaypoints.Item1 > 0)
{
var prevWaypoints = waypointsList[CurWaypoints.Item1 - 1];
var prevWaypoint = prevWaypoints[prevWaypoints.Count - 1];
if (prevWaypoint.Type == WaypointType.Teleport.Code
|| prevWaypoint.Action == ActionEnum.Fight.Code
|| prevWaypoint.Action == ActionEnum.NahidaCollect.Code
|| prevWaypoint.Action == ActionEnum.PickAround.Code)
{
// No delay
}
else
{
await Delay(1000, ct);
}
}
await HandleTeleportWaypoint(waypoint);
}
else