From c5a35fa707b37e23427490a2b205bf65f63685ff Mon Sep 17 00:00:00 2001 From: guowei Date: Tue, 26 Jan 2021 10:33:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=B8=BF=E8=92=99=E9=98=B5=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RoleInfo/RoleAwakeLayout.lua | 4 ++-- .../~Lua/Modules/RoleInfo/RoleUpStarLayout.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua index 668e9ae081..fb9d8a2148 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua @@ -317,7 +317,7 @@ function this.SetShowHeroListData(upStarConsumeMaterial,curHeroList)--1 消耗 end --进阶按钮点击事件处理 function this.StarUpClick() - if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then + if curHeroData.oriLv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then PopupTipPanel.ShowTip(Language[11846]) return end @@ -351,7 +351,7 @@ function this.StarUpClick() end --扣除升星 消耗的材料 更新英雄数据 function this.DeleteUpStarMaterials() - HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.lv,curHeroData.star+1,curHeroData.breakId,upStarRankUpConfig.Id,true) + HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.oriLv,curHeroData.star+1,curHeroData.breakId,upStarRankUpConfig.Id,true) HeroManager.UpdateSingleHeroSkillData(curHeroData.dynamicId) for i, v in pairs(heroDatas) do if curHeroData == v then diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua index ac5df4f9ce..65847376d0 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua @@ -374,7 +374,7 @@ function this:StarUpClick() -- body curHeroData -- print("1111111111",1111111111,tostring(HarmonyManager.IsInfo(curHeroData.dynamicId)),tostring(HarmonyManager:IsEnvoy(curHeroData.dynamicId))) - if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then + if curHeroData.oriLv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then PopupTipPanel.ShowTip(Language[11846]) return end @@ -420,7 +420,7 @@ function this:StarUpClick() end --扣除升星 消耗的材料 更新英雄数据 function this:DeleteUpStarMaterials() - HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.lv,curHeroData.star+1,curHeroData.breakId,upStarRankUpConfig.Id,true) + HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.oriLv,curHeroData.star+1,curHeroData.breakId,upStarRankUpConfig.Id,true) HeroManager.UpdateSingleHeroSkillData(curHeroData.dynamicId) for i, v in pairs(heroDatas) do if curHeroData == v then