【无尽副本】修复编队无法保存的问题
parent
38f41e7517
commit
c8c003abb7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue