From 67ff395b11b575d6cbf34292f9b51e6c91adbb11 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 22 Nov 2024 01:13:23 +0100 Subject: [PATCH] smooth moving interrupt handling --- src/core/Global.ttslua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index de9f17e3..9628a6ed 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -304,6 +304,10 @@ function onPlayerAction(player, action, targets) end end +function onObjectPickUp(_, object) + stopTokenTransformUpdating(object) +end + --------------------------------------------------------- -- chaos token drawing --------------------------------------------------------- @@ -2913,7 +2917,9 @@ function stopTokenTransformUpdating(card) end end cardTokens[card] = nil - card.use_hands = true + if card ~= nil then + card.use_hands = true + end end -- removes tokens from the provided card/deck