diff --git a/src/util/SearchLib.ttslua b/src/util/SearchLib.ttslua index 3beedadf..0e37a870 100644 --- a/src/util/SearchLib.ttslua +++ b/src/util/SearchLib.ttslua @@ -6,7 +6,7 @@ do isCardOrDeck = function(x) return x.type == "Card" or x.type == "Deck" end, isClue = function(x) return x.memo == "clueDoom" and x.is_face_down == false end, isDoom = function(x) return x.memo == "clueDoom" and x.is_face_down == true end, - isTileOrToken = function(x) return (x.type == "Tile" or x.type == "Generic") and x.interactable end, + isTileOrToken = function(x) return x.type == "Tile" or x.type == "Generic" end, isUniversalToken = function(x) return x.getMemo() == "universalActionAbility" end, } @@ -31,7 +31,7 @@ do -- filter the result for matching objects local objList = {} for _, v in ipairs(searchResult) do - if not filter or filterFunc(v.hit_object) then + if (not filter or filterFunc(v.hit_object)) and v.hit_object.interactable then table.insert(objList, v.hit_object) end end