From e67c4e0cb38e816d7d1b3ff5596ee77c1f0e2580 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 31 Jul 2024 23:59:52 +0200 Subject: [PATCH] updated function --- src/core/Global.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)