From eb904dfb44a670b19e728bb9aa38051b66d75714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Fri, 9 May 2025 09:59:01 +0800 Subject: [PATCH] dev --- backend/core/basic/skill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/basic/skill.py b/backend/core/basic/skill.py index 092cc94a..9e4b33bd 100644 --- a/backend/core/basic/skill.py +++ b/backend/core/basic/skill.py @@ -122,7 +122,7 @@ class Skill: weapon = assoc.get('weapon', self.char.武器选项) exceptSkills = assoc.get('exceptSkills', []) if type[0] not in ['*', '+', '$']: - if self.precondition() and self.char.GetWeaponType()[0] in weapon: + if self.precondition() and (self.char.GetWeaponType()[0] in weapon or len(weapon) == len(self.char.武器选项)): getattr(self, type)(old, new, data, skills,exceptSkills,ratio,weapon) continue if self.precondition():