Skip to content

Commit

Permalink
kick aliases in ffa MGI too
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha committed Sep 17, 2024
1 parent 726a32e commit dd1cecb
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ function StarcraftFfaMatchGroupInput.processMatch(match, options)
or match.pbg[opponent.placement]
or DEFUALT_BACKGROUND

-- todo: get rid of the damn alias ...
if Logic.isEmpty(opponent.advances) and Logic.isNotEmpty(opponent.win) then
opponent.advances = opponent.win
mw.ext.TeamLiquidIntegration.add_category('Pages with ffa matches using `win=` in opponents')
end

opponent.extradata.advances = Logic.readBool(opponent.advances)
or (match.bestof and (opponent.score or 0) >= match.bestof)
or opponent.extradata.bg == ADVANCE_BACKGROUND
Expand Down Expand Up @@ -262,14 +256,6 @@ function MapFunctions.readMap(mapInput, opponentCount, hasScores)
return map
end

-- todo: get rid of the damn alias ...
Array.forEach(Array.range(1, opponentCount), function(opponentIndex)
if not map['score' .. opponentIndex] and map['points' .. opponentIndex] then
mw.ext.TeamLiquidIntegration.add_category('Pages with ffa matches using `pointsX=` in maps')
map['score' .. opponentIndex] = map['points' .. opponentIndex]
end
end)

local opponentsInfo = Array.map(Array.range(1, opponentCount), function(opponentIndex)
return MapFunctions.getOpponentInfo(mapInput, opponentIndex, hasScores)
end)
Expand Down

0 comments on commit dd1cecb

Please sign in to comment.