【编队】修复保存编队接口名修改导致的报错

dev_chengFeng
gaoxin 2021-09-24 17:49:32 +08:00
parent d83cf97ae2
commit 8c76d476a2
3 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@ function this.On_Btn2_Click()
PopupTipPanel.ShowTip("挑战编队为空") PopupTipPanel.ShowTip("挑战编队为空")
return return
end end
FormationManager.RefreshFormation( FormationManager.SaveFormation(
this.root.curFormationIndex, this.root.curFormationIndex,
newteam, newteam,
FormationManager.formationList[this.root.curFormationIndex].teamPokemonInfos FormationManager.formationList[this.root.curFormationIndex].teamPokemonInfos

View File

@ -287,7 +287,7 @@ function this.SaveFormation(curType)
table.insert(choosedList, {heroId = teamInfo.heroId,position=teamInfo.position}) table.insert(choosedList, {heroId = teamInfo.heroId,position=teamInfo.position})
end end
end end
FormationManager.RefreshFormation( FormationManager.SaveFormation(
(3000 + curType), (3000 + curType),
choosedList, choosedList,
FormationManager.formationList[(3000 + curType)].teamPokemonInfos FormationManager.formationList[(3000 + curType)].teamPokemonInfos
@ -493,7 +493,7 @@ function this.SetFriendHelpHero(helpFightList,trailType)
end end
end end
if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then
FormationManager.RefreshFormation( FormationManager.SaveFormation(
i + 3000, i + 3000,
newteam, newteam,
FormationManager.formationList[i + 3000].teamPokemonInfos) FormationManager.formationList[i + 3000].teamPokemonInfos)
@ -531,7 +531,7 @@ function this.SetFriendHelpHero(helpFightList,trailType)
end end
end end
if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then
FormationManager.RefreshFormation( FormationManager.SaveFormation(
trailType + 3000, trailType + 3000,
newteam, newteam,
FormationManager.formationList[trailType + 3000].teamPokemonInfos) FormationManager.formationList[trailType + 3000].teamPokemonInfos)
@ -547,7 +547,7 @@ function this.SetFriendHelpHero(helpFightList,trailType)
end end
end end
if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then
FormationManager.RefreshFormation( FormationManager.SaveFormation(
this.root.curFormationIndex, this.root.curFormationIndex,
this.root.choosedList, this.root.choosedList,
FormationManager.formationList[this.root.curFormationIndex].teamPokemonInfos) FormationManager.formationList[this.root.curFormationIndex].teamPokemonInfos)

View File

@ -114,7 +114,7 @@ function FourTrailSingleHelpHero:SetIcon1(heroData,player)
table.insert(choosedList, {heroId = teamInfo.heroId,position=teamInfo.position}) table.insert(choosedList, {heroId = teamInfo.heroId,position=teamInfo.position})
end end
end end
FormationManager.RefreshFormation( FormationManager.SaveFormation(
(1700 + self.curType), (1700 + self.curType),
choosedList, choosedList,
FormationManager.formationList[(1700 + self.curType)].teamPokemonInfos FormationManager.formationList[(1700 + self.curType)].teamPokemonInfos