mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-16 09:03:55 +08:00
fix: 修复冲突天赋漏填出错
This commit is contained in:
@@ -68,13 +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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (const e of this.get(talent).exclude) {
|
const excludeReverse = this.get(talent).exclude;
|
||||||
if (excludeId == e) return talent
|
if(excludeReverse) {
|
||||||
|
for (const e of excludeReverse) {
|
||||||
|
if (excludeId == e) return talent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user