bugfix for single cards in deck area

This commit is contained in:
Chr1Z93 2024-07-18 00:40:31 +02:00
parent a775fb73ce
commit e3b4e600c1

View File

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