去掉编队索引赋值
parent
a372dd7a5e
commit
8827fccbaf
|
|
@ -52,7 +52,7 @@ end
|
|||
function this.UpdateFormation(msg)
|
||||
Log("#msg.TeamPosInfo : " .. #msg.TeamPosInfo)
|
||||
this.formationList = {}
|
||||
this.curFormationIndex = this.SetCurFormationIndex()
|
||||
-- this.curFormationIndex = this.SetCurFormationIndex()
|
||||
|
||||
for i, team in ipairs(msg.TeamPosInfo) do
|
||||
local oTeam = this.MakeAEmptyTeam(team.teamId)
|
||||
|
|
@ -86,16 +86,16 @@ function this.UpdateFormation(msg)
|
|||
this.CheckGuildFightDefendFormation()
|
||||
end
|
||||
|
||||
function this.SetCurFormationIndex()
|
||||
local curIndex = 1
|
||||
local curMapId = PlayerManager.curMapId
|
||||
local carbonType = 1
|
||||
if curMapId and curMapId > 0 then
|
||||
carbonType = ChallengeData[curMapId].Type
|
||||
end
|
||||
curIndex = carbonType == 4 and 401 or 1
|
||||
return curIndex
|
||||
end
|
||||
-- function this.SetCurFormationIndex()
|
||||
-- local curIndex = 1
|
||||
-- local curMapId = PlayerManager.curMapId
|
||||
-- local carbonType = 1
|
||||
-- if curMapId and curMapId > 0 then
|
||||
-- carbonType = ChallengeData[curMapId].Type
|
||||
-- end
|
||||
-- curIndex = carbonType == 4 and 401 or 1
|
||||
-- return curIndex
|
||||
-- end
|
||||
|
||||
function this.RefreshFormation(index, roleList, pokemonList,isDiffmonster)
|
||||
local curFormation = this.formationList[index]
|
||||
|
|
|
|||
Loading…
Reference in New Issue