Skip to content

Commit aee4fcf

Browse files
committed
fix: 修复冲突天赋漏填出错
1 parent 5c0fe56 commit aee4fcf

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/modules/talent.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,17 @@ class Talent {
6868

6969
exclude(talents, excludeId) {
7070
const { exclude } = this.get(excludeId);
71-
if(!exclude) return null;
7271
for(const talent of talents) {
73-
for(const e of exclude) {
74-
if(talent == e) return talent;
72+
if(exclude) {
73+
for(const e of exclude) {
74+
if(talent == e) return talent;
75+
}
7576
}
76-
for (const e of this.get(talent).exclude) {
77-
if (excludeId == e) return talent
77+
const excludeReverse = this.get(talent).exclude;
78+
if(excludeReverse) {
79+
for (const e of excludeReverse) {
80+
if (excludeId == e) return talent
81+
}
7882
}
7983
}
8084
return null;

0 commit comments

Comments
 (0)