added more delay

This commit is contained in:
Chr1Z93 2024-05-13 14:48:28 +02:00
parent 5b18426063
commit 6eaebf3616

View File

@ -155,8 +155,10 @@ end
function endSearch(_, _, isRightClick)
local handCards = Player[handColor].getHandObjects()
local j = 0
for i = #handCards, 1, -1 do
deckLib.placeOrMergeIntoDeck(handCards[i], drawDeckPosition, setAsideRotation)
j = j + 1
Wait.time(function() deckLib.placeOrMergeIntoDeck(handCards[i], drawDeckPosition, setAsideRotation) end, j * 0.1)
end
-- draw set aside cards (from the ground!)
@ -178,11 +180,11 @@ function endSearch(_, _, isRightClick)
if deckAreaObjects.draw then
deckAreaObjects.draw.shuffle()
end
end, 0.3)
end, (#handCards + 2.5) * 0.2)
end
-- Norman Withers handling
if topCardDetected then
Wait.time(function() playmatApi.flipTopCardFromDeck(matColor) end, 0.3)
Wait.time(function() playmatApi.flipTopCardFromDeck(matColor) end, #handCards * 0.2)
end
end