2 Commits

Author SHA1 Message Date
Vick Scarlet
aee4fcf164 fix: 修复冲突天赋漏填出错 2025-05-17 21:27:01 +08:00
Vick Scarlet
5c0fe56915 fix: 修复冲突天赋漏填出错 2025-05-17 21:17:21 +08:00

View File

@@ -68,10 +68,17 @@ class Talent {
exclude(talents, excludeId) { exclude(talents, excludeId) {
const { exclude } = this.get(excludeId); const { exclude } = this.get(excludeId);
if(!exclude) return null;
for(const talent of talents) { for(const talent of talents) {
for(const e of exclude) { if(exclude) {
if(talent == e) return talent; for(const e of exclude) {
if(talent == e) return talent;
}
}
const excludeReverse = this.get(talent).exclude;
if(excludeReverse) {
for (const e of excludeReverse) {
if (excludeId == e) return talent
}
} }
} }
return null; return null;