【编队】修复无法复制编队的问题

dev_chengFeng
gaoxin 2021-09-23 19:42:45 +08:00
parent 6ced770ef1
commit c3820f13ae
1 changed files with 1 additions and 3 deletions

View File

@ -247,9 +247,7 @@ function this.GetFormationByID(teamId)
local _v=tonumber(v)
if teamId==_v and #this.formationList[teamId].teamHeroInfos<=0 then
for n = 1, #this.formationList[1].teamHeroInfos do
if HeroManager.GetSingleHeroData(this.formationList[1].teamHeroInfos.heroId) then
table.insert(this.formationList[teamId].teamHeroInfos, this.formationList[1].teamHeroInfos[n])
end
table.insert(this.formationList[teamId].teamHeroInfos, this.formationList[1].teamHeroInfos[n])
end
--
FormationManager.SaveFormation(teamId, this.formationList[teamId].teamHeroInfos, {})