From 83ff2cfc367d3227449fa8414a25541374929ecb Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 29 一月 2026 15:43:50 +0800
Subject: [PATCH] 125 战斗 命格复活支持

---
 Main/System/Team/TeamBase.cs |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/Main/System/Team/TeamBase.cs b/Main/System/Team/TeamBase.cs
index 4ae329e..6d4913f 100644
--- a/Main/System/Team/TeamBase.cs
+++ b/Main/System/Team/TeamBase.cs
@@ -31,6 +31,8 @@
 
     public TeamHero[] serverHeroes { get; private set; } = new TeamHero[TeamConst.MaxTeamHeroCount];
 
+    public TeamMingge teamMingge { get; private set; }
+
     public TeamBase(int _teamType)
     {
         teamType = _teamType;
@@ -51,17 +53,30 @@
 
         for (int i = 0; i < lineUp.ObjCnt; i++)
         {
-            if (i < tempHeroes.Length)
-            {
+            // if (i < tempHeroes.Length)
+            // {
                 var fightObj = lineUp.ObjList[i];
-                TeamHero hero = new TeamHero(fightObj, this);
-                tempHeroes[hero.positionNum] = hero;
-                serverHeroes[hero.positionNum] = hero;
-            }
-            else
-            {
-                Debug.LogError("TeamBase: Too many heroes in lineup, exceeding MaxTeamHeroCount.");
-            }
+
+                // 鍦ㄦ湰闃靛涓殑绔欎綅锛屼粠1寮�濮嬪埌7涓烘灏� 99涓哄懡鏍� 101鍙婁互涓婁负鐏靛吔
+                if (fightObj.PosNum == 99)
+                {
+                    teamMingge = new TeamMingge(fightObj, this);
+                }
+                else if (fightObj.PosNum >= 101)
+                {
+                    
+                }
+                else if (fightObj.PosNum >= 1 && fightObj.PosNum <= 7)
+                {
+                    TeamHero hero = new TeamHero(fightObj, this);
+                    tempHeroes[hero.positionNum] = hero;
+                    serverHeroes[hero.positionNum] = hero;
+                }
+            // }
+            // else
+            // {
+            //     Debug.LogError("TeamBase: Too many heroes in lineup, exceeding MaxTeamHeroCount.");
+            // }
         }
 
         // 鍒锋柊鏈嶅姟鍣ㄦ暟鎹�
@@ -464,4 +479,5 @@
         if (tempHeroes[index2] != null) tempHeroes[index2].positionNum = index2;
     }
     
-}
\ No newline at end of file
+}
+

--
Gitblit v1.8.0