We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c0fe56 commit aee4fcfCopy full SHA for aee4fcf
src/modules/talent.js
@@ -68,13 +68,17 @@ class Talent {
68
69
exclude(talents, excludeId) {
70
const { exclude } = this.get(excludeId);
71
- if(!exclude) return null;
72
for(const talent of talents) {
73
- for(const e of exclude) {
74
- if(talent == e) return talent;
+ if(exclude) {
+ for(const e of exclude) {
+ if(talent == e) return talent;
75
+ }
76
}
- for (const e of this.get(talent).exclude) {
77
- if (excludeId == e) return talent
+ const excludeReverse = this.get(talent).exclude;
78
+ if(excludeReverse) {
79
+ for (const e of excludeReverse) {
80
+ if (excludeId == e) return talent
81
82
83
84
return null;
0 commit comments