From e2d4f9314a5097f961250b5e06b66660dc247312 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 11 十一月 2025 17:05:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/HeroUI/HeroUIManager.OnTeam.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Main/System/HeroUI/HeroUIManager.OnTeam.cs b/Main/System/HeroUI/HeroUIManager.OnTeam.cs
index 7efa4f4..322a874 100644
--- a/Main/System/HeroUI/HeroUIManager.OnTeam.cs
+++ b/Main/System/HeroUI/HeroUIManager.OnTeam.cs
@@ -297,9 +297,11 @@
         //鎺ㄨ崘鏈�澶�6涓紝瀛樺湪鐩稿悓heroid锛屽垯璺宠繃
         List<string> selectHeroList = new List<string>();
         List<int> selectHeroIDList = new List<int>();
+
+        int maxCnt = TeamConst.MaxTeamHeroCount - lockIndexList.Count;
         for (int i = 0; i < tmpList.Count; i++)
         {
-            if (selectHeroList.Count >= TeamConst.MaxTeamHeroCount)
+            if (selectHeroList.Count >= maxCnt)
                 break;
 
             string guid = tmpList[i];

--
Gitblit v1.8.0