From 7387023dfeae1910cfd6467d911f12ba52355d8a Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Mon, 31 May 2021 17:33:29 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=3D=3D=3D=3D=3D=3D=E9=80=9A?= =?UTF-8?q?=E5=85=B3=E6=98=9F=E7=BA=A7=E6=9D=A1=E4=BB=B6=20=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E9=80=BB=E8=BE=91=204=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/HardStageCondition.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/HardStageCondition.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/HardStageCondition.lua index 510ec30e4e..b71a0434f4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/HardStageCondition.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/HardStageCondition.lua @@ -33,8 +33,12 @@ local _ConditionConfig = { local v2 = condition[2] local record = HardStageEventManager.GetRoundDamageRecord() if record then - if record[v1] and record[v1] >= v2 then - return 1 + if record then + for key, value in pairs(record) do + if key<=v1 and value>=v2 then + return 1 + end + end end end return 0