Merge pull request #772 from argonui/deck-importer

Bugfix for single cards in deck area
This commit is contained in:
dscarpac 2024-07-19 12:10:10 -07:00 committed by GitHub
commit be1e13f074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -454,7 +454,11 @@ function removeBusyZones(playerColor, zoneDecks)
-- check for existing deck
local cardsInDeckArea = 0
for _, obj in pairs(playermatApi.getDeckAreaObjects(playerColor)) do
cardsInDeckArea = cardsInDeckArea + #obj.getObjects()
if obj.type == "Card" then
cardsInDeckArea = cardsInDeckArea + 1
elseif obj.type == "Deck" then
cardsInDeckArea = cardsInDeckArea + #obj.getObjects()
end
end
-- threshhold of 16 cards for skipping deck import to cover cases like Tekeli-li cards