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

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("挑战编队为空")
return
end
FormationManager.RefreshFormation(
FormationManager.SaveFormation(
this.root.curFormationIndex,
newteam,
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})
end
end
FormationManager.RefreshFormation(
FormationManager.SaveFormation(
(3000 + curType),
choosedList,
FormationManager.formationList[(3000 + curType)].teamPokemonInfos
@ -493,7 +493,7 @@ function this.SetFriendHelpHero(helpFightList,trailType)
end
end
if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then
FormationManager.RefreshFormation(
FormationManager.SaveFormation(
i + 3000,
newteam,
FormationManager.formationList[i + 3000].teamPokemonInfos)
@ -531,7 +531,7 @@ function this.SetFriendHelpHero(helpFightList,trailType)
end
end
if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then
FormationManager.RefreshFormation(
FormationManager.SaveFormation(
trailType + 3000,
newteam,
FormationManager.formationList[trailType + 3000].teamPokemonInfos)
@ -547,7 +547,7 @@ function this.SetFriendHelpHero(helpFightList,trailType)
end
end
if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then
FormationManager.RefreshFormation(
FormationManager.SaveFormation(
this.root.curFormationIndex,
this.root.choosedList,
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})
end
end
FormationManager.RefreshFormation(
FormationManager.SaveFormation(
(1700 + self.curType),
choosedList,
FormationManager.formationList[(1700 + self.curType)].teamPokemonInfos