摘星阁bug修改

dev_chengFeng
yuanshuai 2022-09-01 18:34:32 +08:00
parent ba085f9c4b
commit f83dce69b4
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function this:BindEvent()
self:ClosePanel()
end)
Util.AddClick(this.Btn1,function()
local curLv=curSelectHero.equipStrong[HomeLandManager.curEquip]
local curLv=not curSelectHero.equipStrong[HomeLandManager.curEquip] and curSelectHero.equipStrong[HomeLandManager.curEquip] or 0
local data =ConfigManager.GetConfigDataByKey(ConfigName.EquipStrengthen,"Level",curLv)
if HomeLandManager.BuildData[data.Limit[1]].level < data.Limit[2] then
PopupTipPanel.ShowTip(string.format("%s到达%s级可升级",HomeLandManager.BuildData[data.Limit[1]].dataMain.Name,data.Limit[2]))