Fixed Importer issue

This commit is contained in:
Entrox-Licher 2023-10-13 22:34:44 -04:00
parent 1629f790b3
commit dfa2ad324f

View File

@ -333,10 +333,12 @@ function handleSpiritDeck(investigatorId, cardList, playerColor)
if investigatorId == "02004-p" or investigatorId == "02004-pb" then -- Parallel Jim Culver
local spritList = {}
for i, card in ipairs(cardList) do
if card.metadata.id == "90053" or (card.metadata.type == "Asset"
if card.metadata.id == "90053" or (
card.metadata.type == "Asset"
and card.metadata.traits ~= nil
and string.match(card.metadata.traits, "Ally")
and card.metadata.bonded_to == nil) then
and card.metadata.level ~= nil
and card.metadata.level < 3) then
table.insert(spritList, i)
end
end