From c2e4fc8ca812c39a25af30642b5a4772ebe72fe2 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 11 Apr 2023 22:17:29 +0200 Subject: [PATCH] exclude playermat owned tokens --- src/playermat/Playmat.ttslua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/playermat/Playmat.ttslua b/src/playermat/Playmat.ttslua index 5a14b196..a684188f 100644 --- a/src/playermat/Playmat.ttslua +++ b/src/playermat/Playmat.ttslua @@ -689,11 +689,15 @@ end function removeTokensFromObject(object) for _, v in ipairs(searchArea(object.getPosition(), { 3, 1, 4 })) do local obj = v.hit_object - -- don't remove the table surface, self, any decks/cards or chaos tokens - if obj.getGUID() ~= "4ee1f2" and + local name = obj.getName() + + if obj.getGUID() ~= "4ee1f2" and -- table obj ~= self and obj.type ~= "Deck" and obj.type ~= "Card" and + name ~= "Horror" and + name ~= "Resources" and + obj.getDescription() ~= "Action Token" and not tokenChecker.isChaosToken(obj) then TRASHCAN.putObject(obj) end