From 2e01b3256d2b45dbe537068bcb8ca3d0a312999d Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 15 Oct 2025 12:32:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=95=BF=E6=8C=89=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=A1=86=E4=B8=8D=E6=B6=88=E5=A4=B1=20&=20=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=9E=AC=E7=A7=BB=E5=88=B0=E9=98=BB=E5=87=BB=E5=92=8C=E6=8D=95?= =?UTF-8?q?=E6=8D=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/actions.js | 6 ++++++ public/libs/maps.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/libs/actions.js b/public/libs/actions.js index ce1b3c7..3a43202 100644 --- a/public/libs/actions.js +++ b/public/libs/actions.js @@ -846,6 +846,12 @@ actions.prototype._sys_longClick_lockControl = function (x, y, px, py) { core.status.event.id == 'action' && core.status.event.data.type == 'text' ) { + const [now, next] = core.status.event.data.list; + if (next?.type !== 'text') { + const Store = Mota.require('@user/client-modules').TextboxStore; + const textbox = Store.get(now.textbox ?? 'main-textbox'); + textbox.hide(); + } core.doAction(); return true; } diff --git a/public/libs/maps.js b/public/libs/maps.js index 4679cea..51096a9 100644 --- a/public/libs/maps.js +++ b/public/libs/maps.js @@ -1101,8 +1101,8 @@ maps.prototype._canMoveDirectly_checkNextPoint = function (blocksObj, x, y) { const damage = core.status.thisMap.enemy.mapDamage[index]; if (damage) { if (damage.damage !== 0) return false; - if (damage.mockery) return false; - if (damage.hunt) return false; + if (damage.ambush) return false; + if (damage.repulse) return false; } return true;