Skip to content

Commit

Permalink
fix(match2): clash royale issue with literal opponents (#5130)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Nov 27, 2024
1 parent e330522 commit 98c69e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ end
function MapFunctions.getCardsExtradata(mapOpponents)
local extradata = {}
for opponentIndex, opponent in ipairs(mapOpponents) do
for playerIndex, player in pairs(opponent.players) do
for playerIndex, player in pairs(opponent.players or {}) do
local prefix = 't' .. opponentIndex .. 'p' .. playerIndex
extradata[prefix .. 'tower'] = player.cards.tower
-- participant.cards is an array plus the tower value ....
Expand Down

0 comments on commit 98c69e9

Please sign in to comment.