【神将】升星,需要四个三星同阵营不应该自动给选择上

dev_chengFeng
jiaoyangna 2020-07-21 14:16:40 +08:00
parent aa86f77fea
commit 9fbcc3b77b
1 changed files with 5 additions and 2 deletions

View File

@ -907,8 +907,11 @@ function RoleInfoPanel:AutoSelectUpStarHeroList(_curUpStarData)
curSelectUpStarGo=upStarPreList[i]
local upStarHeroListData=HeroManager.GetUpStarHeroListData(curUpStarData[i].upStarMaterialsData.Id,curHeroData)
local curSelectHeroList = {}
if curUpStarData[i].upStarMaterialsData.Issame ==1 or curUpStarData[i].upStarMaterialsData.IsId > 0 or
(curUpStarData[i].upStarMaterialsData.IsSameClan == 1 and curUpStarData[i].upStarMaterialsData.StarLimit == 3 and curHeroData.heroConfig.Qualiy ~= 3) then
if curUpStarData[i].upStarMaterialsData.Issame ==1
or curUpStarData[i].upStarMaterialsData.IsId > 0 then
-- or (curUpStarData[i].upStarMaterialsData.IsSameClan == 1
-- and curUpStarData[i].upStarMaterialsData.StarLimit == 3
-- and curHeroData.heroConfig.Qualiy ~= 3) then
if LengthOfTable(upStarHeroListData.heroList) >= curUpStarData[i].upStarData[4] then
for i = 1, curUpStarData[i].upStarData[4] do
if upStarHeroListData.heroList[i].lockState == 0 and upStarHeroListData.heroList[i].isFormation == "" then