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,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