From 1d452e735a0dac22dab7d0bf7c3bc7458de30448 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 15 十二月 2025 14:18:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/HeroUI/HeroUIManager.cs |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Main/System/HeroUI/HeroUIManager.cs b/Main/System/HeroUI/HeroUIManager.cs
index 91ad53b..cf4b669 100644
--- a/Main/System/HeroUI/HeroUIManager.cs
+++ b/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;
+                    }
                 }
             }
         }

--
Gitblit v1.8.0