diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 4605967f..caa662b3 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