From 6248f425332594930c71c0c7006494b252476033 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Mon, 29 Apr 2024 09:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE=E7=82=B9=E5=84=BF=E5=BF=98=E4=BA=86mo?= =?UTF-8?q?de?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/chess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/chess.js b/mode/chess.js index 97a1849cc..f9ae860fa 100644 --- a/mode/chess.js +++ b/mode/chess.js @@ -2460,7 +2460,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { if (lib.character[name][1] == "key") return 4; }; game.data.character = game.data.character.filter(function (i) { - return Array.isArray(lib.character[i]); + return get.is.object(lib.character[i]); }); game.data.character.sort(function (a, b) { var del = groupSort(a) - groupSort(b);