From 51d0dd405a59fa7f4474e471e33c75a150009f3a Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Tue, 28 Jun 2022 19:54:04 +0800 Subject: [PATCH] =?UTF-8?q?`ysd`=E6=94=AF=E6=8C=81=E6=97=85=E8=A1=8C?= =?UTF-8?q?=E8=80=85=E3=80=81=E5=A2=9E=E5=8A=A0=E5=9C=B0=E5=8C=BA=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E3=80=81=E4=BC=98=E5=8C=96=E8=AF=84=E5=88=86=E7=AE=97?= =?UTF-8?q?=E6=B3=95=EF=BC=8Cfix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/enka_util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/enka_util.py b/utils/enka_util.py index 246c36a..406bc26 100644 --- a/utils/enka_util.py +++ b/utils/enka_util.py @@ -206,6 +206,8 @@ def get_effective(role_name: str, role_weapon: str, artifacts: list, element: st if role_name in ['荧', '空']: role_name = str(element) + '主' if role_name in ra_score['Role']: + if len(artifacts) < 5: + return ra_score['Role'][role_name]['常规'] if role_name == '钟离': if artifacts[-2]['主属性']['属性名'] == '岩元素伤害加成': return ra_score['Role'][role_name]['岩伤']