diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 7ec35688..d273d4f0 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -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)