去掉编队索引赋值

dev_chengFeng
zhangqiang 2020-09-03 16:43:08 +08:00
parent a372dd7a5e
commit 8827fccbaf
1 changed files with 11 additions and 11 deletions

View File

@ -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]