一键升级bug修复

yuanshuai 2022-12-28 13:59:16 +08:00
parent ec6592a0d3
commit dcbfd1f4c7
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ function RoleInfoLayout:BindEvent()
end) end)
--一键升级 --一键升级
Util.AddClick(this.upMaxLvBtn, function() Util.AddClick(this.upMaxLvBtn, function()
if isHeroUpTuPo and upTuPoRankUpConfig and curHeroData.lv == upTuPoRankUpConfig.LimitLevel then
PopupTipPanel.ShowTip("等级已达上限")
return
end
local oldUpMaxLv=this:CalUpMaxLv() local oldUpMaxLv=this:CalUpMaxLv()
local openLv=this.GetCurHeroLvLimit() local openLv=this.GetCurHeroLvLimit()
if curHeroData.lv>=openLv then if curHeroData.lv>=openLv then