【bug】=====七界阵容条件修改

dev_chengFeng
wangzhenxing 2022-04-01 15:09:57 +08:00
parent e8c27a0596
commit f44f70085b
1 changed files with 3 additions and 3 deletions

View File

@ -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