From dbaa4048cf73edca47949ed179cd8ff51e703983 Mon Sep 17 00:00:00 2001 From: dscarpac Date: Wed, 3 Jul 2024 03:40:09 -0500 Subject: [PATCH] updates --- src/core/GameKeyHandler.ttslua | 2 +- src/core/Global.ttslua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/GameKeyHandler.ttslua b/src/core/GameKeyHandler.ttslua index 56a1a712..1b3c74bc 100644 --- a/src/core/GameKeyHandler.ttslua +++ b/src/core/GameKeyHandler.ttslua @@ -141,7 +141,7 @@ function discardObject(playerColor, hoveredObject) -- These should probably not be discarded normally. Ask player for confirmation. local tokenData = mythosAreaApi.returnTokenData() - scenarioName = tokenData.currentScenario + local scenarioName = tokenData.currentScenario if scenarioName ~= "Lost in Time and Space" and scenarioName ~= "The Secret Name" then if hoveredObject.type == "Deck" or hoveredObject.hasTag("Location") then local suspect = (hoveredObject.type == "Deck") and "Deck" or "Location" diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 0f91129e..91cbd68f 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -260,6 +260,7 @@ function onPlayerAction(player, action, targets) end return true end + --------------------------------------------------------- -- chaos token drawing ---------------------------------------------------------