minor fix
This commit is contained in:
parent
9c789e2643
commit
b15072642c
@ -173,9 +173,12 @@ end
|
||||
function discardGroup(playerColor, selectedObjects)
|
||||
local count = #selectedObjects
|
||||
-- discarding one at a time avoids an error with cards in the discard pile losing the 'hands' toggle and uses multiple mats
|
||||
for j = count, 1, -1 do
|
||||
Wait.time(function() performDiscard(playerColor, selectedObjects[j]) end,
|
||||
(count - j + 1) * 0.1)
|
||||
for i = count, 1, -1 do
|
||||
Wait.time(function()
|
||||
if (selectedObjects[i].type == "Card" or selectedObjects[i].type ~= "Deck" or selectedObjects[i].type == "Tile") then
|
||||
performDiscard(playerColor, selectedObjects[i])
|
||||
end
|
||||
end, (count - i + 1) * 0.1)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user