化身卡升星bug修改

dev_chengFeng
yuanshuai 2022-04-26 13:44:19 +08:00
parent 0c3dec451f
commit f65ddb2eda
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ function this:BindEvent()
PopupTipPanel.ShowTip("星级已满")
return
end
if #curSelectMat<this.cardConfig.StarUpCost[curStar+1][2] then
local selectNum=0
for i = 1, #curSelectMat do
selectNum=selectNum+curSelectMat[i].num
end
if selectNum<this.cardConfig.StarUpCost[curStar+1][2] then
PopupTipPanel.ShowTip("材料不足")
return
end