From 68869f5b4b4139958942294522471ff9f9f6c8f9 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 27 五月 2026 14:56:13 +0800
Subject: [PATCH] 656 布阵阵型增加混搭武将组合

---
 Main/System/Arena/HeroCountryComponent.cs |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/Main/System/Arena/HeroCountryComponent.cs b/Main/System/Arena/HeroCountryComponent.cs
index 10f3d5b..5d7ca47 100644
--- a/Main/System/Arena/HeroCountryComponent.cs
+++ b/Main/System/Arena/HeroCountryComponent.cs
@@ -23,6 +23,32 @@
     public void RefreshOnTeamCountry(List<TeamHero> teamHeroes, bool playEffect = false)
     {
         this.teamHeroes = teamHeroes;
+
+        // 1. 鍏堟鏌ユ贩鎼樀鍨�
+        var mixedConfig = HeroUIManager.Instance.GetMixedFormationConfig(teamHeroes);
+        if (mixedConfig != null)
+        {
+            countryOnImg.SetSprite("heroTeamCountryHe");
+            var participatingCountries = HeroUIManager.Instance.GetParticipatingCountriesByPriority(teamHeroes);
+            int totalPoints = mixedConfig.Countrys * mixedConfig.NeedHeroCount;
+            for (int i = 0; i < OnCountImgs.Count; i++)
+            {
+                if (i < totalPoints)
+                {
+                    int countryIndex = i / mixedConfig.NeedHeroCount;
+                    OnCountImgs[i].SetActive(true);
+                    OnCountImgs[i].SetSprite("heroTeamCountryPoint" + participatingCountries[countryIndex]);
+                }
+                else
+                {
+                    OnCountImgs[i].SetActive(false);
+                }
+            }
+            if (playEffect)
+                countryEffect.Play();
+            return;
+        }
+
         Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(teamHeroes);
 
         var config = HeroLineupHaloConfig.GetConfig(result.x, result.y);

--
Gitblit v1.8.0