From 82dd52e57c27476fac2be77079eeddd3f3aa6870 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Tue, 29 Mar 2022 16:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E7=82=B9=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Hero/HeroManager.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua index 613b6691c5..67ee7dab5f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua @@ -3316,6 +3316,20 @@ function this.IsShowFlyUpRedPoint(curHeroData,isNoDeleFormation)--isNoDeleFormat -- --培养已满 -- end local curUpStarData= HeroManager.GetHeroCurUpStarInfo(curHeroData.dynamicId) + + local upStarRankUpConfig = nil + local heroRankUpConfig = ConfigManager.GetConfig(ConfigName.HeroRankupConfig) + for i, v in ConfigPairs(heroRankUpConfig) do + if v.Star==curHeroData.heroConfig.Star then--初始星级相等 + if v.Show==2 then -- 2 升星 + if v.Id ~= curHeroData.upStarId and curHeroData.star == v.LimitStar then + --Log("升星 "..v.Id) + upStarRankUpConfig=v + end + end + end + end + if curUpStarData and #curUpStarData>0 then else --培养已满 @@ -3331,7 +3345,6 @@ function this.IsShowFlyUpRedPoint(curHeroData,isNoDeleFormation)--isNoDeleFormat return false end if upStarRankUpConfig and upStarRankUpConfig.LimitHongmengLevel and HarmonyManager.GetSingleAdditions(HarmonyAddType.AddLv) < upStarRankUpConfig.LimitHongmengLevel then - else return false end if upStarRankUpConfig then