From 82ef2d41f67de7c0460ce0f2d2958149813008d9 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 19 一月 2026 01:10:50 +0800
Subject: [PATCH] 422 子 【内政】命格系统 / 【内政】命格系统-客户端

---
 Main/System/Team/TeamManager.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Main/System/Team/TeamManager.cs b/Main/System/Team/TeamManager.cs
index 2afd452..8daf5c2 100644
--- a/Main/System/Team/TeamManager.cs
+++ b/Main/System/Team/TeamManager.cs
@@ -28,18 +28,18 @@
 		teamDict.Clear();
 	}
 
-	public void OnHeroChangeEvent(HB124_tagSCLineupInfo vNetData)
+	public void OnHeroChangeEvent(HB124_tagSCHeroPresetInfo vNetData)
 	{
 		var heroPack = PackManager.Instance.GetSinglePack(PackType.Hero);
 		HashSet<TeamType> teamTypeSet = new HashSet<TeamType>();
-		for (int i = 0; i < vNetData.LineupCnt; i++)
+		for (int i = 0; i < vNetData.PresetCnt; i++)
 		{
-			TeamType teamType = (TeamType)vNetData.LineupList[i].LineupID;
+			TeamType teamType = (TeamType)vNetData.PresetList[i].PresetID;
 			teamTypeSet.Add(teamType);
 			var team = GetTeam(teamType);
-			for (int j = 0; j < vNetData.LineupList[i].HeroCnt; j++)
+			for (int j = 0; j < vNetData.PresetList[i].HeroCnt; j++)
 			{
-				int index = vNetData.LineupList[i].HeroItemIndexList[j];
+				int index = vNetData.PresetList[i].HeroItemIndexList[j];
 				HeroInfo hero;
 				if (index == 0)
 				{
@@ -47,7 +47,7 @@
 				}
 				else
 				{
-					var item = heroPack.GetItemByIndex(vNetData.LineupList[i].HeroItemIndexList[j] - 1);
+					var item = heroPack.GetItemByIndex(vNetData.PresetList[i].HeroItemIndexList[j] - 1);
 					if (item == null)
 					{
 						hero = null;
@@ -56,7 +56,7 @@
 					hero = HeroManager.Instance.GetHero(item.guid);
 
 				}
-				team.RefreshServerData(vNetData.LineupList[i].ShapeType, j, hero);
+				team.RefreshServerData(vNetData.PresetList[i].ShapeType, j, hero);
 			}
 		}
 

--
Gitblit v1.8.0