minor fix

This commit is contained in:
Spmario233 2024-04-23 15:07:04 +08:00
parent 307fa31dc0
commit 4d995d9054
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -31,7 +31,7 @@ export class Character {
**/
group;
/**
* 武将牌的势力边框颜如徐庶身在曹营心在汉
* 武将牌的势力边框颜如徐庶身在曹营心在汉
* @type { string }
**/
groupBorder;