This commit is contained in:
2025-05-15 00:33:14 +08:00
parent bd67462f8b
commit 3fae45b75e
7 changed files with 94 additions and 38 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ class Skill:
return True
def apply_association(self, type, old, new, data, skills, exceptSkills,ratio = 100,weapon = []):
if self.char.GetWeaponType()[0] not in weapon:
if (self.char.GetWeaponType()[0] not in weapon) and not (self.char.GetWeaponType()[0] is None and len(weapon) == len(self.char.武器选项)):
return
if type.startswith('$*'):
if 'cdReduce' in type:
@@ -157,7 +157,7 @@ class Skill:
self.update_skill_attribute(skill,type, old, new, data,ratio,weapon)
def update_skill_attribute(self,skill, type, old, new, data,ratio = 100,weapon = []):
if self.char.GetWeaponType()[0] not in weapon:
if (self.char.GetWeaponType()[0] not in weapon) and not (self.char.GetWeaponType()[0] is None and len(weapon) == len(self.char.武器选项)):
return
if type.startswith('*'):
if 'cdReduce' in type or type == 'cd' or 'cdRatio' in type: