Merge pull request #706 from argonui/search-assistant

Search Assistant: Increased delay on deck shuffling
This commit is contained in:
dscarpac 2024-06-07 17:10:10 -05:00 committed by GitHub
commit 594a2d949e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,12 +163,11 @@ function endSearch(_, _, isRightClick)
-- draw set aside cards (from the ground!)
for _, obj in ipairs(searchLib.atPosition(setAsidePosition, "isCardOrDeck")) do
local count = 1
if obj.type == "Deck" then
Wait.time(function() obj.deal(#obj.getObjects(), handColor) end, 1)
elseif obj.type == "Card" then
obj.setPosition(Player[handColor].getHandTransform().position)
obj.flip()
count = #obj.getObjects()
end
Wait.time(function() obj.deal(count, handColor) end, 1)
end
normalView()
@ -180,11 +179,11 @@ function endSearch(_, _, isRightClick)
if deckAreaObjects.draw then
deckAreaObjects.draw.shuffle()
end
end, (#handCards + 2.5) * 0.2)
end, #handCards * 0.3 + 0.5)
end
-- Norman Withers handling
if topCardDetected then
Wait.time(function() playmatApi.flipTopCardFromDeck(matColor) end, #handCards * 0.2)
Wait.time(function() playmatApi.flipTopCardFromDeck(matColor) end, #handCards * 0.3 + 0.75)
end
end