minor fix

This commit is contained in:
dscarpac 2024-07-03 02:22:56 -05:00
parent 9c789e2643
commit b15072642c

View File

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