hch
2025-10-22 af6e207c6d185ed66125e85e18c02c63bea597f9
Main/System/HeroUI/HeroPosWin.cs
@@ -100,6 +100,7 @@
        countryOnBtn.AddListener(() =>
        {
            HeroUIManager.Instance.isCustonHeroFormation = false;
            UIManager.Instance.OpenWindow<HeroFormationWin>();
        });
@@ -471,10 +472,33 @@
        var guidList = HeroUIManager.Instance.SelectRecommend();
        var team = TeamManager.Instance.GetTeam(HeroUIManager.Instance.selectTeamType);
        team.RemoveAllHeroes();
        for (int i = 0; i < guidList.Count; i++)
        if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == HeroUIManager.Instance.onekeyGuideID)
        {
            team.AddHero(HeroManager.Instance.GetHero(guidList[i]), i, true);
            //第二个强制排在5号位
            if (guidList.Count > 1)
            {
                team.AddHero(HeroManager.Instance.GetHero(guidList[1]), 4, true);
                guidList.RemoveAt(1);
            }
            for (int i = 0; i < guidList.Count; i++)
            {
                int index = i;
                if (i >= 4)
                {
                    index = i + 1;
                }
                team.AddHero(HeroManager.Instance.GetHero(guidList[i]), index, true);
            }
        }
        else
        {
            for (int i = 0; i < guidList.Count; i++)
            {
                team.AddHero(HeroManager.Instance.GetHero(guidList[i]), i, true);
            }
        }
        TeamChangeEvent(new List<int>() { 0, 1, 2, 3, 4, 5 }, -1, Vector3.zero);