Merge pull request #1305 from kuangshen04/PR-Branch

bugfix
This commit is contained in:
Spmario233 2024-05-03 00:43:56 +08:00 committed by GitHub
commit c00385e3b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 7 deletions

View File

@ -200,7 +200,11 @@ export class Character {
clans = []; clans = [];
for (let i = 0; i < trash.length; i++) { for (let i = 0; i < trash.length; i++) {
const item = trash[i]; const item = trash[i];
if (i === 0 && (lib.group.includes(item) || item === 'key')) { if (typeof item !== "string") {
keptTrashes.push(item);
continue;
}
if (i === 0 && (lib.group.includes(item) || item === "key")) {
this.groupInGuozhan = item; this.groupInGuozhan = item;
} else if (item === "zhu") { } else if (item === "zhu") {
this.isZhugong = true; this.isZhugong = true;
@ -232,17 +236,17 @@ export class Character {
this.isSpecialInStoneMode = true; this.isSpecialInStoneMode = true;
} else if (item === "hiddenSkill") { } else if (item === "hiddenSkill") {
this.hasHiddenSkill = true; this.hasHiddenSkill = true;
} else if (item?.startsWith("border:")) { } else if (item.startsWith("border:")) {
this.groupBorder = item.slice(7); this.groupBorder = item.slice(7);
} else if (item?.startsWith("dualside:")) { } else if (item.startsWith("dualside:")) {
this.dualSideCharacter = item.slice(9); this.dualSideCharacter = item.slice(9);
} else if (item?.startsWith("gzgroup:")) { } else if (item.startsWith("gzgroup:")) {
this.groupInGuozhan = item.slice(8); this.groupInGuozhan = item.slice(8);
} else if (item?.startsWith("doublegroup:")) { } else if (item.startsWith("doublegroup:")) {
this.doubleGroup = item.slice(12).split(":"); this.doubleGroup = item.slice(12).split(":");
} else if (item?.startsWith("clan:")) { } else if (item.startsWith("clan:")) {
clans.push(item.slice(5)); clans.push(item.slice(5));
} else if (item?.startsWith("InitFilter:")) { } else if (item.startsWith("InitFilter:")) {
this.initFilters = item.slice(11).split(":"); this.initFilters = item.slice(11).split(":");
} else { } else {
keptTrashes.push(item); keptTrashes.push(item);