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

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 for j = 1, #team.teamHeroInfos do
local teamHeroInfo = team.teamHeroInfos[j] 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 if HeroManager.GetSingleHeroData(teamHeroInfo.heroId) then
table.insert(oTeam.teamHeroInfos, teamHeroInfo) table.insert(oTeam.teamHeroInfos, teamHeroInfo)
HeroManager.SetHeroFormationList(teamHeroInfo.heroId,team.teamId,1) HeroManager.SetHeroFormationList(teamHeroInfo.heroId,team.teamId,1)
else else
isRefresh = true isRefresh = true
end end
else
table.insert(oTeam.teamHeroInfos, teamHeroInfo)
HeroManager.SetHeroFormationList(teamHeroInfo.heroId,team.teamId,1)
end
end end
oTeam.teamPokemonInfos = {} oTeam.teamPokemonInfos = {}
this.formationList[team.teamId] = oTeam this.formationList[team.teamId] = oTeam