diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua index c03ea9b703..2a96133367 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua @@ -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]