From 5c449c6abd1971b14d235bd0274cf3b74d9c4b72 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Fri, 22 Nov 2024 20:39:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A3=85=E5=A4=87=E5=BD=95=E5=83=8F=20&?= =?UTF-8?q?=20boss=E6=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/control.js | 4 ++-- public/libs/utils.js | 2 -- src/plugin/boss/towerBoss.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/public/libs/control.js b/public/libs/control.js index 54b06ec..71f3422 100644 --- a/public/libs/control.js +++ b/public/libs/control.js @@ -1763,7 +1763,7 @@ control.prototype._replayAction_equip = function (action) { const cb = function () { const next = core.status.replay.toReplay[0] || ''; - if (!next.startsWith('equip:') && !next.startsWith('unEquip:')) { + if (!next.startsWith('equip:') && !next.startsWith('unequip:')) { core.removeFlag('__doNotCheckAutoEvents__'); core.checkAutoEvents(); } @@ -1803,7 +1803,7 @@ control.prototype._replayAction_unEquip = function (action) { var cb = function () { var next = core.status.replay.toReplay[0] || ''; - if (!next.startsWith('equip:') && !next.startsWith('unEquip:')) { + if (!next.startsWith('equip:') && !next.startsWith('unequip:')) { core.removeFlag('__doNotCheckAutoEvents__'); core.checkAutoEvents(); } diff --git a/public/libs/utils.js b/public/libs/utils.js index 722ceec..4edd6e5 100644 --- a/public/libs/utils.js +++ b/public/libs/utils.js @@ -689,8 +689,6 @@ utils.prototype._encodeRoute_encodeOne = function (t) { if (t.startsWith('item:')) return 'I' + this._encodeRoute_id2number(t.slice(5)) + ':'; else if (t.startsWith('unEquip:')) return 'u' + t.slice(8); - else if (t.startsWith('equip:')) - return 'e' + this._encodeRoute_id2number(t.slice(6)) + ':'; else if (t.startsWith('saveEquip:')) return 's' + t.slice(10); else if (t.startsWith('loadEquip:')) return 'l' + t.slice(10); else if (t.startsWith('fly:')) return 'F' + t.slice(4) + ':'; diff --git a/src/plugin/boss/towerBoss.ts b/src/plugin/boss/towerBoss.ts index 167a1de..f6c874c 100644 --- a/src/plugin/boss/towerBoss.ts +++ b/src/plugin/boss/towerBoss.ts @@ -193,7 +193,7 @@ export class TowerBoss extends BarrageBoss { TowerBoss.effect.end(); core.status.hero.hp = this.heroHp; - Mota.Plugin.require('replay_g').clip('choice:0'); + Mota.Plugin.require('replay_g').clip('choices:0'); } /**