From 1653290b3a87bcf2ea800441f565197ef48a9a7a Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 7 Apr 2023 22:16:31 +0200 Subject: [PATCH] adding readbag to hover --- src/playercards/CardsThatSealTokens.ttslua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/playercards/CardsThatSealTokens.ttslua b/src/playercards/CardsThatSealTokens.ttslua index df1e73ff..aaa8ec47 100644 --- a/src/playercards/CardsThatSealTokens.ttslua +++ b/src/playercards/CardsThatSealTokens.ttslua @@ -141,6 +141,14 @@ function readBag() end end +-- native event from TTS - used to update the context menu for cards like "Unrelenting" +function onHover() + if SHOW_READ_BAG then + readBag() + generateContextMenu() + end +end + -- seals the named token on this card function sealToken(name, playerColor) if not Global.call("canTouchChaosTokens") then return end