From 929cd961a7ffea5d346b3941931bf2662e3bb227 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 10 十一月 2025 17:30:58 +0800
Subject: [PATCH] 0312 修复一键布阵因锁位置产生的bug
---
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