Updated Patrice handling

This commit is contained in:
Chr1Z93 2024-07-02 11:40:08 +02:00
parent 15db35dc98
commit 199fa6b77c

View File

@ -396,19 +396,17 @@ function doUpkeep(_, clickedByColor, isRightClick)
end
end
local j = 0
local k = 0
for i = #cardsToDiscard, 1, -1 do
j = j + 1
Wait.time(function() deckLib.placeOrMergeIntoDeck(cardsToDiscard[i], returnGlobalDiscardPosition(), self.getRotation()) end, j * 0.1)
-- perform discarding 1 by 1
local pos = returnGlobalDiscardPosition()
local count = #cardsToDiscard
for i = count, 1, -1 do
Wait.time(function() deckLib.placeOrMergeIntoDeck(cardsToDiscard[i], pos, rot) end, (count - i + 1) * 0.1)
end
-- add some time if there are any cards to discard, if not, draw up to 5 immediately
if j > 0 then
k = 0.7 + (j * 0.1)
else
k = 0
local k = 0
if count > 0 then
k = 1 + (count * 0.1)
end
Wait.time(function()