diff --git a/backend/api/utils/skill_tree.py b/backend/api/utils/skill_tree.py index 5f801ba5..6c3a0ec8 100644 --- a/backend/api/utils/skill_tree.py +++ b/backend/api/utils/skill_tree.py @@ -21,7 +21,12 @@ def load_skill_tree_with_desc_special(job_id: str, job_grow_id: str) -> list[dic detail_path = detail_dir / f'{skill_id}.json' if detail_path.exists(): with detail_path.open(encoding='utf-8') as file: - desc_special = json.load(file).get('descSpecial') + skill_data = json.load(file) + desc_special = skill_data.get('descSpecial') + optionDesc = skill_data.get('levelInfo', {}).get('optionDesc','') + if optionDesc and '压制力' in optionDesc and not any(desc in (desc_special or []) for desc in ['压制', '压制力']): + desc_special = (desc_special or []) + ['压制'] + skill['descSpecial'] = desc_special return skills_data