yyl
6 天以前 1d452e735a0dac22dab7d0bf7c3bc7458de30448
Main/System/HeroUI/HeroUIManager.cs
@@ -507,14 +507,17 @@
        }
        else
        {
            //判断觉醒材料是否足够
            var maxAwakeLV = HeroAwakeConfig.GetMaxAwakeLV(hero.heroId);
            if (hero.awakeLevel < maxAwakeLV)
            if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.HeroAwake))
            {
                var config = HeroQualityAwakeConfig.GetQualityAwakeConfig(hero.Quality, hero.awakeLevel);
                if (itemPack.GetCountById(config.UPCostItem[0]) >= config.UPCostItem[1])
                //判断觉醒材料是否足够
                var maxAwakeLV = HeroAwakeConfig.GetMaxAwakeLV(hero.heroId);
                if (hero.awakeLevel < maxAwakeLV)
                {
                    return 1;
                    var config = HeroQualityAwakeConfig.GetQualityAwakeConfig(hero.Quality, hero.awakeLevel);
                    if (itemPack.GetCountById(config.UPCostItem[0]) >= config.UPCostItem[1])
                    {
                        return 1;
                    }
                }
            }
        }