From c8c003abb7ed842d6f39321551f5451540ad3e59 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 27 Sep 2021 16:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=97=A0=E5=B0=BD=E5=89=AF=E6=9C=AC?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E7=BC=96=E9=98=9F=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/FormationManager.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua index 66a9439b2c..591f69594a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua @@ -81,12 +81,21 @@ function this.UpdateFormation(msg) for j = 1, #team.teamHeroInfos do local teamHeroInfo = team.teamHeroInfos[j] + -- TODO: 四灵试炼编队特殊处理 + if team.teamId == FormationTypeDef.FourElement_PEOPLE + or team.teamId == FormationTypeDef.FourElement_MAGIC + or team.teamId == FormationTypeDef.FourElement_BUDDHIST + or team.teamId == FormationTypeDef.FourElement_TAOIST then if HeroManager.GetSingleHeroData(teamHeroInfo.heroId) then table.insert(oTeam.teamHeroInfos, teamHeroInfo) HeroManager.SetHeroFormationList(teamHeroInfo.heroId,team.teamId,1) else isRefresh = true end + else + table.insert(oTeam.teamHeroInfos, teamHeroInfo) + HeroManager.SetHeroFormationList(teamHeroInfo.heroId,team.teamId,1) + end end oTeam.teamPokemonInfos = {} this.formationList[team.teamId] = oTeam