Merge pull request #1016 from argonui/held-by-color

Excluded cards that are held
This commit is contained in:
dscarpac 2024-11-20 16:24:24 -06:00 committed by GitHub
commit 1c606d6c0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2877,12 +2877,14 @@ function moveCardWithTokens(params)
Wait.condition(
function() stopTokenTransformUpdating(card) end,
function()
if card.held_by_color ~= nil then return true end
if card ~= nil and cardTokens[card] ~= nil and #cardTokens[card] ~= 0 then
updateTokenTransform(card)
return card.resting and not card.isSmoothMoving()
else
return true
end
return true
end
)
end