From c3c83742e56f9b7104fbd2730de9baff0dc613dd Mon Sep 17 00:00:00 2001 From: bling-yshs <377178599@qq.com> Date: Mon, 30 Dec 2024 22:57:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=A0=E9=80=81?= =?UTF-8?q?=E5=B9=B6=E8=87=AA=E5=8A=A8=E7=A7=98=E5=A2=83=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=89=93=E8=8A=AC=E5=BE=B7=E5=B0=BC=E5=B0=94?= =?UTF-8?q?=E4=B9=8B=E9=A1=B6=EF=BC=88=E5=86=B0=E6=9C=AC=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoDomain/main.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/repo/js/AutoDomain/main.js b/repo/js/AutoDomain/main.js index 49697b8e..5c90f048 100644 --- a/repo/js/AutoDomain/main.js +++ b/repo/js/AutoDomain/main.js @@ -270,19 +270,21 @@ try{ await genshin.tp(domainInfo.position[2], domainInfo.position[0]); await sleep(1000); - - // 向前走 - keyDown("w"); - await sleep(2500); - keyUp("w"); - - await sleep(500); - + + // 向前走,除非秘境是芬德尼尔之顶 + if (domainName !== "芬德尼尔之顶") { + // 向前走 + keyDown("w"); + await sleep(2500); + keyUp("w"); + await sleep(500); + } + // 执行自动秘境 await dispatcher.runTask(new SoloTask("AutoDomain")); await sleep(500); break; - }catch (ex) + }catch (ex) { if (ex.message.includes("检测到复苏界面")) { @@ -293,7 +295,7 @@ { // 如果不包含 "检测到复苏界面",则继续抛出异常 throw ex; - } + } } } -})(); \ No newline at end of file +})();