From 43e494c82b6a55d5bf95be964e4698c67b3970ec Mon Sep 17 00:00:00 2001 From: IceCola <739201322@qq.com> Date: Mon, 10 Jun 2024 21:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=9A=E5=9B=BD?= =?UTF-8?q?=E6=88=98=E8=8B=B1=E9=AD=82=E6=8A=A5=E9=94=99=EF=BC=9Bsecurity?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=B2=A1=E6=9C=89await=E8=B0=83?= =?UTF-8?q?=E7=94=A8=EF=BC=9B=E8=81=94=E6=9C=BA2v2=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BA=86=E6=9C=AA=E5=AE=9A=E4=B9=89=E5=8F=98=E9=87=8Ffunc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/shenhua/skill.js | 2 +- mode/versus.js | 1 - noname/init/index.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/character/shenhua/skill.js b/character/shenhua/skill.js index d54934ce03..970dca2267 100644 --- a/character/shenhua/skill.js +++ b/character/shenhua/skill.js @@ -5011,7 +5011,7 @@ const skills = { const str1 = "摸" + get.cnNumber(num, true) + "弃一"; const str2 = "摸一弃" + get.cnNumber(num, true); directcontrol = - str == + str1 == (await player .chooseControl(str1, str2, function (event, player) { if (player.isHealthy()) return 1 - _status.event.choice; diff --git a/mode/versus.js b/mode/versus.js index c3b5c9d3da..a6529fd0e9 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -3761,7 +3761,6 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { for (var i = 0; i < lib.configOL.characterPack.length; i++) { var pack = lib.characterPack[lib.configOL.characterPack[i]]; for (var j in pack) { - if (typeof func == "function" && func(j)) continue; if (lib.connectBanned.includes(j)) continue; if (lib.character[j]) libCharacter[j] = pack[j]; } diff --git a/noname/init/index.js b/noname/init/index.js index b27b443b42..146f9b0f96 100644 --- a/noname/init/index.js +++ b/noname/init/index.js @@ -302,7 +302,7 @@ export async function boot() { // 初始化security const securityModule = await import("../util/security.js"); const security = securityModule.default; - security.initSecurity({ + await security.initSecurity({ lib, game, ui, get, ai, _status, gnc, });