From 2a778840b0cb61cd5b7ac2bb0f49ddb58120c6c0 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 21 Nov 2024 00:09:08 +0100 Subject: [PATCH] Added "low velocity" as additional condition --- src/core/Global.ttslua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 265eab7d..7a03aa07 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -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