updated search

This commit is contained in:
Chr1Z93 2024-11-19 00:04:57 +01:00
parent 7e26a25d7d
commit b58f9923c2
2 changed files with 2 additions and 4 deletions

View File

@ -2921,13 +2921,11 @@ function removeTokensFromObject(params)
end
end
for _, obj in ipairs(searchLib.onObject(object)) do
for _, obj in ipairs(searchLib.onObject(object, "isTileOrToken")) do
if tokenChecker.isChaosToken(obj) then
returnChaosTokenToBag( { token = obj, fromBag = false } )
elseif obj.getGUID() ~= "4ee1f2" and -- table
obj ~= self and
obj.type ~= "Deck" and
obj.type ~= "Card" and
obj.memo ~= nil and
obj.getLock() == false then
trash.putObject(obj)

View File

@ -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" end,
isTileOrToken = function(x) return x.type == "Tile" or x.type == "Generic" end,
isUniversalToken = function(x) return x.getMemo() == "universalActionAbility" end,
}