diff --git a/mode/versus.js b/mode/versus.js index 2ee231b97..1a4cc5e42 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -1753,7 +1753,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { if (event.filterChoice(i)) continue; if (lib.filter.characterDisabled(i)) continue; event.list.push(i); - if (lib.character[i][4] && lib.character[i][4].includes("zhu")) { + if (lib.character[i].isZhugong) { list2.push(i); } } @@ -3455,7 +3455,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { if (_status.event.player.identity == "zhu") { if (Math.random() < 0.8) { var info = lib.character[button.link]; - if (!info[4] || !info[4].includes("zhu")) { + if (!info || !info.isZhugong) { return 0; } } diff --git a/noname/library/element/character.js b/noname/library/element/character.js index 0682d30ad..e0af19cef 100644 --- a/noname/library/element/character.js +++ b/noname/library/element/character.js @@ -31,7 +31,7 @@ export class Character { **/ group; /** - * 武将牌的势力边框颜(如徐庶“身在曹营心在汉”) + * 武将牌的势力边框颜色(如徐庶“身在曹营心在汉”) * @type { string } **/ groupBorder;