Added "low velocity" as additional condition

This commit is contained in:
Chr1Z93 2024-11-21 00:09:08 +01:00
parent a0780f2316
commit 2a778840b0

View File

@ -2881,7 +2881,8 @@ function moveCardWithTokens(params)
if card ~= nil and cardTokens[card] ~= nil and #cardTokens[card] ~= 0 then
updateTokenTransform(card)
return card.resting and not card.isSmoothMoving()
local cardVelocity = card.getVelocity():magnitude()
return (card.resting and not card.isSmoothMoving()) or (cardVelocity < 0.15 and cardVelocity > 0.05)
end
return true