lcy
2026-06-23 def9cd466307331cdac837de09e7692d8b76720b
662 武将试炼 武将副本头像条不显示没到开服天的限时武将
1个文件已修改
20 ■■■■■ 已修改文件
Main/System/HeroTrial/HeroTrialManager.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
    }
}