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