Merge pull request #418 from argonui/bonded
Bugfix: spawn correct amount of bonded cards
This commit is contained in:
commit
5c4bc40f87
@ -295,7 +295,12 @@ do
|
||||
local card = allCardsBagApi.getCardById(cardId)
|
||||
if (card ~= nil and card.metadata.bonded ~= nil) then
|
||||
for _, bond in ipairs(card.metadata.bonded) do
|
||||
-- add a bonded card for each copy of the parent card (except for Pendant of the Queen)
|
||||
if bond.id == "06022" then
|
||||
bondedCards[bond.id] = bond.count
|
||||
else
|
||||
bondedCards[bond.id] = bond.count * cardCount
|
||||
end
|
||||
-- We need to know which cards are bonded to determine their position, remember them
|
||||
bondedList[bond.id] = true
|
||||
-- Also adding taboo versions of bonded cards to the list
|
||||
|
Loading…
Reference in New Issue
Block a user