【编队】修复无法复制编队的问题
parent
6ced770ef1
commit
c3820f13ae
|
@ -247,10 +247,8 @@ function this.GetFormationByID(teamId)
|
||||||
local _v=tonumber(v)
|
local _v=tonumber(v)
|
||||||
if teamId==_v and #this.formationList[teamId].teamHeroInfos<=0 then
|
if teamId==_v and #this.formationList[teamId].teamHeroInfos<=0 then
|
||||||
for n = 1, #this.formationList[1].teamHeroInfos do
|
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])
|
table.insert(this.formationList[teamId].teamHeroInfos, this.formationList[1].teamHeroInfos[n])
|
||||||
end
|
end
|
||||||
end
|
|
||||||
--
|
--
|
||||||
FormationManager.SaveFormation(teamId, this.formationList[teamId].teamHeroInfos, {})
|
FormationManager.SaveFormation(teamId, this.formationList[teamId].teamHeroInfos, {})
|
||||||
return this.formationList[teamId]
|
return this.formationList[teamId]
|
||||||
|
|
Loading…
Reference in New Issue