mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-14 00:02:45 +08:00
fix: 修复冲突天赋漏填出错
This commit is contained in:
@ -68,13 +68,17 @@ class Talent {
|
||||
|
||||
exclude(talents, excludeId) {
|
||||
const { exclude } = this.get(excludeId);
|
||||
if(!exclude) return null;
|
||||
for(const talent of talents) {
|
||||
for(const e of exclude) {
|
||||
if(talent == e) return talent;
|
||||
if(exclude) {
|
||||
for(const e of exclude) {
|
||||
if(talent == e) return talent;
|
||||
}
|
||||
}
|
||||
for (const e of this.get(talent).exclude) {
|
||||
if (excludeId == e) return talent
|
||||
const excludeReverse = this.get(talent).exclude;
|
||||
if(excludeReverse) {
|
||||
for (const e of excludeReverse) {
|
||||
if (excludeId == e) return talent
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user