From dc2ac54923ffc36cb349631ec1420649c3bdf284 Mon Sep 17 00:00:00 2001 From: Zerino Date: Sun, 17 Nov 2024 14:36:49 -0300 Subject: [PATCH] reverted mythos area search change --- src/core/MythosArea.ttslua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/MythosArea.ttslua b/src/core/MythosArea.ttslua index 20857a27..bfe77ad0 100644 --- a/src/core/MythosArea.ttslua +++ b/src/core/MythosArea.ttslua @@ -319,11 +319,9 @@ end -- removes tokens from the provided card/deck function removeTokensFromObject(object) local TRASH = guidReferenceApi.getObjectByOwnerAndType("Mythos", "Trash") - for _, obj in ipairs(searchLib.onObject(object)) do + for _, obj in ipairs(searchLib.onObject(object, "isTileOrToken")) do if obj.getGUID() ~= "4ee1f2" and -- table obj ~= self and - obj.type ~= "Deck" and - obj.type ~= "Card" and obj.memo ~= nil and obj.getLock() == false and not tokenChecker.isChaosToken(obj) then