🐛 Fix AttributeError in avatar_list allow_mutation

This commit is contained in:
xtaodada 2024-12-02 14:01:07 +08:00
parent 67d7ea226b
commit 700ab47bee
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -108,8 +108,6 @@ class AvatarListPlugin(Plugin):
talents = [] talents = []
for talent in detail.talents: for talent in detail.talents:
if "普通攻击" in talent.name: if "普通攻击" in talent.name:
talent.Config.allow_mutation = True
# noinspection Pydantic
talent.group_id = 1131 talent.group_id = 1131
if talent.type in ["attack", "skill", "burst"]: if talent.type in ["attack", "skill", "burst"]:
talents.append(talent) talents.append(talent)