mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-10-29 10:22:59 +08:00
fix: 长按文本框不消失 & 可以瞬移到阻击和捕捉
This commit is contained in:
parent
42a9efe431
commit
2e01b3256d
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user