From 538a5d4baad0832c20a275159cedb6ac4c843763 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 1 Aug 2024 23:52:37 +0200 Subject: [PATCH] Fixed starterdeck spawning --- src/playercards/PlayerCardPanel.ttslua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/playercards/PlayerCardPanel.ttslua b/src/playercards/PlayerCardPanel.ttslua index 51427e6a..c3ee6bc4 100644 --- a/src/playercards/PlayerCardPanel.ttslua +++ b/src/playercards/PlayerCardPanel.ttslua @@ -603,9 +603,14 @@ function spawnStarterDeck(investigatorName, investigatorData, position) local cardIdList = {} for id, count in pairs(slots) do for i = 1, count do - table.insert(cardIdList, id) + -- don't include mini-cards and investigators + local card = allCardsBagApi.getCardById(id) + if card and card.metadata and card.metadata.type ~= "Investigator" and card.metadata.type ~= "Minicard" then + table.insert(cardIdList, id) + end end end + spawnBag.spawn({ name = investigatorName .. "starter", cards = cardIdList,