From ea6a9a4af2ac310973fbbc19d1200d0910696ecc Mon Sep 17 00:00:00 2001 From: Jamis Date: Mon, 2 Mar 2026 01:10:14 +1100 Subject: [PATCH] More granular control over pre-teleport delay (#2866) --- .../GameTask/AutoPathing/PathExecutor.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs b/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs index af480387..1d24b318 100644 --- a/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs +++ b/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs @@ -188,7 +188,19 @@ public class PathExecutor { if (CurWaypoints.Item1 > 0) { - await Delay(1000, ct); + 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); }