From c6ccb0a41bf595fb069ffb2ab75928dbdf23ac2e Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 05 十一月 2025 11:53:52 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/HeroUI/HeroTrainWin.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index fe2b66f..2a30fe0 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -130,6 +130,10 @@
         deleteBtn.AddListener(DeleteHero);
         awakeBtn.AddListener(() =>
         {
+            if (!FuncOpen.Instance.IsFuncOpen(38, true))
+            {
+                return;
+            }
             HeroUIManager.Instance.selectAwakeHeroGuid = guid;
             UIManager.Instance.OpenWindow<HeroAwakeWin>();
         });

--
Gitblit v1.8.0