From 12a3fed5bd8167a64bc697ef5e84c9fe7ce4a1ce Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 23 Nov 2024 23:34:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9E=AC=E7=A7=BB=E4=B8=8E=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/control.js | 1 + src/data/tips.json | 3 ++- src/plugin/game/fallback.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/libs/control.js b/public/libs/control.js index fcc6e36..7fca7d4 100644 --- a/public/libs/control.js +++ b/public/libs/control.js @@ -696,6 +696,7 @@ control.prototype.moveDirectly = function (destX, destY, ignoreSteps) { ////// 尝试瞬间移动 ////// control.prototype.tryMoveDirectly = function (destX, destY) { + if (core.isMoving()) return false; if (this.nearHero(destX, destY)) return false; var canMoveArray = core.maps.generateMovableArray(); var dirs = [ diff --git a/src/data/tips.json b/src/data/tips.json index 41ef123..73d0b62 100644 --- a/src/data/tips.json +++ b/src/data/tips.json @@ -32,5 +32,6 @@ "生命回复不会超过防御的十分之一", "不想看小贴士?设置里面可以关掉!", "不小心进入了追猎范围?读取自动存档撤回到进入前吧!", - "不小心进入了电摇嘲讽范围?读取自动存档撤回到进入前吧!" + "不小心进入了电摇嘲讽范围?读取自动存档撤回到进入前吧!", + "小地图出现卡顿?试试在背包中系统设置里把小地图懒更新打开吧!" ] \ No newline at end of file diff --git a/src/plugin/game/fallback.ts b/src/plugin/game/fallback.ts index 41ac77a..54896ea 100644 --- a/src/plugin/game/fallback.ts +++ b/src/plugin/game/fallback.ts @@ -255,6 +255,7 @@ export function init() { destY: number, stepPostfix: DiredLoc[] ) { + if (heroMover.moving) return; if (!core.status.played || core.status.lockControl) return; if (this._setAutomaticRoute_isMoving(destX, destY)) return; if (this._setAutomaticRoute_isTurning(destX, destY, stepPostfix))