From 60d567b75a6d5f873685bb363771c47b9ee30402 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 20 Nov 2024 23:19:19 +0100 Subject: [PATCH] Excluded cards that are held --- src/core/Global.ttslua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 99d596e5..efa14115 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -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