From def9cd466307331cdac837de09e7692d8b76720b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期二, 23 六月 2026 17:14:37 +0800
Subject: [PATCH] 662 武将试炼 武将副本头像条不显示没到开服天的限时武将

---
 Main/System/HeroTrial/HeroTrialManager.cs |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/Main/System/HeroTrial/HeroTrialManager.cs b/Main/System/HeroTrial/HeroTrialManager.cs
index 1add955..d45a252 100644
--- a/Main/System/HeroTrial/HeroTrialManager.cs
+++ b/Main/System/HeroTrial/HeroTrialManager.cs
@@ -806,6 +806,24 @@
     /// </summary>
     public List<int> GetHeroTrialHeroIDList()
     {
-        return HeroTrialConfig.GetSortedHeroIDList();
+        List<int> heroIDList = HeroTrialConfig.GetSortedHeroIDList();
+        for (int i = heroIDList.Count - 1; i >= 0; i--)
+        {
+            if (!IsHeroTrialHeroVisible(heroIDList[i]))
+                heroIDList.RemoveAt(i);
+        }
+
+        return heroIDList;
+    }
+
+    bool IsHeroTrialHeroVisible(int heroID)
+    {
+        HeroConfig heroConfig = HeroConfig.Get(heroID);
+        if (heroConfig == null)
+            return true;
+
+        return heroConfig.IsActLimit <= 0 ||
+            heroConfig.OpenCollectionDay <= 0 ||
+            TimeUtility.OpenDay + 1 >= heroConfig.OpenCollectionDay;
     }
 }

--
Gitblit v1.8.0