updated function
This commit is contained in:
parent
ec64ca6f76
commit
e67c4e0cb3
@ -258,7 +258,7 @@ function onObjectNumberTyped(hoveredObject, playerColor, number)
|
||||
end
|
||||
|
||||
-- check whether the hovered object is part of a players draw objects
|
||||
for color, _ in ipairs(guidReferenceApi.getObjectsByType("Playermat")) do
|
||||
for color, _ in pairs(guidReferenceApi.getObjectsByType("Playermat")) do
|
||||
local deckAreaObjects = playermatApi.getDeckAreaObjects(color)
|
||||
if deckAreaObjects.topCard == hoveredObject or deckAreaObjects.draw == hoveredObject then
|
||||
playermatApi.drawCardsWithReshuffle(color, number)
|
||||
|
Loading…
Reference in New Issue
Block a user