error handling

This commit is contained in:
Chr1Z93 2024-09-14 14:29:09 +02:00
parent 72508c010b
commit 4fd061c859

View File

@ -735,6 +735,11 @@ function spawnCycle(cycle)
end
local cardList = allCardsBagApi.getCardsByCycle(cycle, sortByMetadata, includeNoLevelCards)
if #cardList == 0 then
printToAll("Didn't find any cards for '" .. cycle .. "'.")
return
end
prepareToPlaceCards()
local rowCount = spawnInvestigators(cycle)