minor fix
This commit is contained in:
parent
9c789e2643
commit
b15072642c
@ -173,9 +173,12 @@ end
|
|||||||
function discardGroup(playerColor, selectedObjects)
|
function discardGroup(playerColor, selectedObjects)
|
||||||
local count = #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
|
-- 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
|
for i = count, 1, -1 do
|
||||||
Wait.time(function() performDiscard(playerColor, selectedObjects[j]) end,
|
Wait.time(function()
|
||||||
(count - j + 1) * 0.1)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user