Merge pull request #772 from argonui/deck-importer
Bugfix for single cards in deck area
This commit is contained in:
commit
be1e13f074
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user