From f44f70085b9d5dc0d143ea53103768630308a350 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 1 Apr 2022 15:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=3D=3D=3D=3D=3D=E4=B8=83?= =?UTF-8?q?=E7=95=8C=E9=98=B5=E5=AE=B9=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/QiJieShiLian/QiJieShiLianManager.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/QiJieShiLian/QiJieShiLianManager.lua b/Assets/ManagedResources/~Lua/Modules/QiJieShiLian/QiJieShiLianManager.lua index 9b7370adee..9e1c35b01a 100644 --- a/Assets/ManagedResources/~Lua/Modules/QiJieShiLian/QiJieShiLianManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/QiJieShiLian/QiJieShiLianManager.lua @@ -111,11 +111,11 @@ function this.CheckGoalIsFinish(_dataId,_obj,_formationList) -- LogRed("##heroList:"..tostring(#heroList)) for i = 1, #heroList do -- LogGreen("heroList[i].heroId:"..tostring(heroList[i].heroId)) - table.insert(tempList,HeroConfig[HeroManager.GetSingleHeroData(heroList[i].heroId).id]) + table.insert(tempList,HeroManager.GetSingleHeroData(heroList[i].heroId)) end if #tempList > 0 and final and goalData.PropertyName and goalData.PropertyName > 0 then for i = #tempList, 1,-1 do - if goalData.PropertyName ~= tempList[i].PropertyName then + if goalData.PropertyName ~= tempList[i].changeProId then table.remove(tempList,i) if #tempList == 0 then final = true @@ -126,7 +126,7 @@ function this.CheckGoalIsFinish(_dataId,_obj,_formationList) -- LogGreen("#tempList1:"..tostring(#tempList)) if #tempList > 0 and final and goalData.Profession and goalData.Profession > 0 then for i = #tempList, 1,-1 do - if goalData.Profession ~= tempList[i].Profession then + if goalData.Profession ~= tempList[i].heroConfig.Profession then table.remove(tempList,i) if #tempList == 0 then final = true