【无尽副本】修复编队无法保存的问题

dev_chengFeng
gaoxin 2021-09-27 16:58:08 +08:00
parent 38f41e7517
commit c8c003abb7
1 changed files with 9 additions and 0 deletions

View File

@ -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