【星魂福袋】点击使用数量加号,提示英雄达上限 修复

dev_chengFeng
ZhangBiao 2021-07-28 09:58:41 +08:00
parent 042644bdcb
commit c8d35b5458
1 changed files with 9 additions and 2 deletions

View File

@ -110,13 +110,20 @@ function BagResolveAnCompoundPanel:BindEvent()
this.ShowCompoundNumData(value)
end)
Util.AddClick(this.addBtn, function()
if endHeroNum > 0 then
if itemData.itemConfig.ItemType == ItemType.Box then
if compoundNum<compoundMaxNum then
compoundNum=compoundNum+1
this.ShowCompoundNumData(compoundNum)
end
else
PopupTipPanel.ShowTip(Language[12157])
if endHeroNum > 0 then
if compoundNum<compoundMaxNum then
compoundNum=compoundNum+1
this.ShowCompoundNumData(compoundNum)
end
else
PopupTipPanel.ShowTip(Language[12157])
end
end
end)
Util.AddClick(this.jianBtn, function()