fix: 长按文本框不消失 & 可以瞬移到阻击和捕捉

This commit is contained in:
unanmed 2025-10-15 12:32:44 +08:00
parent 42a9efe431
commit 2e01b3256d
2 changed files with 8 additions and 2 deletions

View File

@ -846,6 +846,12 @@ actions.prototype._sys_longClick_lockControl = function (x, y, px, py) {
core.status.event.id == 'action' && core.status.event.id == 'action' &&
core.status.event.data.type == 'text' 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(); core.doAction();
return true; return true;
} }

View File

@ -1101,8 +1101,8 @@ maps.prototype._canMoveDirectly_checkNextPoint = function (blocksObj, x, y) {
const damage = core.status.thisMap.enemy.mapDamage[index]; const damage = core.status.thisMap.enemy.mapDamage[index];
if (damage) { if (damage) {
if (damage.damage !== 0) return false; if (damage.damage !== 0) return false;
if (damage.mockery) return false; if (damage.ambush) return false;
if (damage.hunt) return false; if (damage.repulse) return false;
} }
return true; return true;