Merge pull request #706 from argonui/search-assistant
Search Assistant: Increased delay on deck shuffling
This commit is contained in:
commit
594a2d949e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user