From f787ed46063565605fce184880aaf88e7300dbf9 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 21 Nov 2024 15:16:19 +0100 Subject: [PATCH] Updated scenario reference card detection for removing --- src/core/MythosArea.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/MythosArea.ttslua b/src/core/MythosArea.ttslua index 2b04d705..654e0b8c 100644 --- a/src/core/MythosArea.ttslua +++ b/src/core/MythosArea.ttslua @@ -73,7 +73,7 @@ function copyScenarioReferenceCard() local obj = searchResult[1] local md = JSON.decode(obj.getGMNotes()) or {} - if md.type == "ScenarioReference" then + if obj.getName() == "Scenario" or md.type == "ScenarioReference" then local trash = guidReferenceApi.getObjectByOwnerAndType(color, "Trash") trash.putObject(obj) scenarioCard.clone({ position = cardPosition, snap_to_grid = true })