diff --git a/_docs/personalization.md b/_docs/personalization.md index 51ca82d2..27276ef1 100644 --- a/_docs/personalization.md +++ b/_docs/personalization.md @@ -427,10 +427,12 @@ function (enemy, hero_hp, hero_atk, hero_def, hero_mdef, x, y, floorId) { ``` js ////// 点击楼层传送器时的打开操作 ////// control.prototype.useFly = function (need) { - if (!core.status.heroStop) { + if (!core.status.heroStop || core.status.heroMoving > 0) { core.drawTip("请先停止勇士行动"); return; } + if (core.status.lockControl || core.status.event.id != null) return; + if (core.canUseItem('fly')) core.useItem('fly'); else core.drawTip("当前无法使用"+core.material.items.fly.name); } diff --git a/libs/items.js b/libs/items.js index 1834cdb3..f38f8cb3 100644 --- a/libs/items.js +++ b/libs/items.js @@ -320,6 +320,7 @@ items.prototype.loadEquip = function (equipId, callback) { var type = this.getEquipTypeById(equipId); if (type < 0) { core.drawTip("当前没有"+loadEquip.equip.type+"的空位!"); + if (core.isset(callback)) callback(); return; } diff --git a/libs/maps.js b/libs/maps.js index c1fdd3b8..89050ff4 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -1377,7 +1377,7 @@ maps.prototype.hideBlock = function (x, y, floorId) { core.clearMap('event2', x * 32, y * 32 +32-height, 32, height-32); } - block.disable = true; + block.block.disable = true; core.updateStatusBar(); } diff --git a/project/functions.js b/project/functions.js index f0561da5..63fd72ee 100644 --- a/project/functions.js +++ b/project/functions.js @@ -745,7 +745,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = // 可以在这里任意增加或编辑每个按键的行为 // 如果处于正在行走状态,则不处理 - if (!core.status.heroStop) + if (!core.status.heroStop || core.status.heroMoving > 0) return; // Alt+0~9,快捷换上套装