updated search
This commit is contained in:
parent
7e26a25d7d
commit
b58f9923c2
@ -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)
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user