diff --git a/SotMDeckBuilder.py b/SotMDeckBuilder.py index 2692d9f..070b586 100755 --- a/SotMDeckBuilder.py +++ b/SotMDeckBuilder.py @@ -182,7 +182,7 @@ def makeJson(deckJson, imgWidth, outfile): cardNum += 2 for card in deckJson['deck']: - for i in range(0, card['count']): + for i in range(0, card.get('count', 1)): outJson['ObjectStates'][0]['DeckIDs'].append(cardNum) # add a card object thing for each card, and give it a name