From 3881c32ed3fb037f1b97b3c2b421c0508e113137 Mon Sep 17 00:00:00 2001 From: dscarpac Date: Fri, 1 Nov 2024 19:26:46 -0500 Subject: [PATCH] added function --- src/core/Global.ttslua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index b724fd3e..77dd5112 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -257,6 +257,14 @@ end -- handle card drawing via number typing for multihanded gameplay -- (and additionally allow Norman Withers to draw multiple cards via number) function onObjectNumberTyped(hoveredObject, playerColor, number) + -- adds cards to appropriate hand for Attachment Helper + if hoveredObject.getName() == "Attachment Helper" then + local matColor = playermatApi.getMatColorByPosition(hoveredObject.getPosition()) + local handColor = playermatApi.getPlayerColor(matColor) + hoveredObject.deal(number, handColor) + return true + end + -- only continue for decks or cards if hoveredObject.type ~= "Deck" and hoveredObject.type ~= "Card" then return end