From 305ad1343bb5d6d058a9f7d4dee63a3d52993f86 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Mon, 19 Dec 2022 15:27:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=8D=87=E7=BA=A7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RoleInfo/RoleInfoLayout.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua index 46c58d0d1b..8c7a90da82 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua @@ -150,7 +150,8 @@ function RoleInfoLayout:BindEvent() --一键升级 Util.AddClick(this.upMaxLvBtn, function() local oldUpMaxLv=this:CalUpMaxLv() - if curHeroData.lv>=oldUpMaxLv then + local openLv=this.GetCurHeroLvLimit() + if curHeroData.lv>=openLv then PopupTipPanel.ShowTip("等级已达上限") return end @@ -159,7 +160,7 @@ function RoleInfoLayout:BindEvent() return end - if oldUpMaxLv==curHeroData.lv then + if curHeroData.lv 0 then curLvEnd = heroRankupConfig[curHeroData.breakId].OpenLevel end - if curHeroData.upStarId > 0 then + if curHeroData.lv>= curLvEnd and curHeroData.upStarId > 0 then if heroRankupConfig[curHeroData.upStarId].OpenLevel > curLvEnd then curLvEnd = heroRankupConfig[curHeroData.upStarId].OpenLevel end