updated function

This commit is contained in:
Chr1Z93 2024-07-31 23:59:52 +02:00
parent ec64ca6f76
commit e67c4e0cb3

View File

@ -258,7 +258,7 @@ function onObjectNumberTyped(hoveredObject, playerColor, number)
end end
-- check whether the hovered object is part of a players draw objects -- 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) local deckAreaObjects = playermatApi.getDeckAreaObjects(color)
if deckAreaObjects.topCard == hoveredObject or deckAreaObjects.draw == hoveredObject then if deckAreaObjects.topCard == hoveredObject or deckAreaObjects.draw == hoveredObject then
playermatApi.drawCardsWithReshuffle(color, number) playermatApi.drawCardsWithReshuffle(color, number)