【编队】修复无法复制编队的问题
parent
6ced770ef1
commit
c3820f13ae
|
@ -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, {})
|
||||
|
|
Loading…
Reference in New Issue