From ab82a71eab5f13795876b913b7423fb3e6a4f374 Mon Sep 17 00:00:00 2001 From: lcy <1459594991@qq.com> Date: 星期一, 20 十月 2025 19:44:29 +0800 Subject: [PATCH] 143 演武场-客户端 战斗支持显示国家武将数量及点击展示详情,修复层级 --- Main/System/HeroUI/HeroFormationCell.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Main/System/HeroUI/HeroFormationCell.cs b/Main/System/HeroUI/HeroFormationCell.cs index d12a38c..7a24f3c 100644 --- a/Main/System/HeroUI/HeroFormationCell.cs +++ b/Main/System/HeroUI/HeroFormationCell.cs @@ -12,7 +12,15 @@ public void Display(int index) { - Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true); + Int2 result; + if (HeroUIManager.Instance.isCustonHeroFormation) + { + result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.custonTeamHeroes);; + } + else + { + result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true); + } var config = HeroLineupHaloConfig.GetConfig(result.x, result.y); bool sameCountry = result.x == (index + 1); -- Gitblit v1.8.0