From 291465ca13e95f162dd0a263e6562467976294bd Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sun, 5 Nov 2023 18:03:21 +0100 Subject: [PATCH] excluded resource counters --- src/core/GameKeyHandler.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/GameKeyHandler.ttslua b/src/core/GameKeyHandler.ttslua index aa178ef3..a5a8d1f4 100644 --- a/src/core/GameKeyHandler.ttslua +++ b/src/core/GameKeyHandler.ttslua @@ -135,7 +135,7 @@ function removeOneUse(playerColor, hoveredObject) for _, v in ipairs(searchOnObj(hoveredObject)) do local obj = v.hit_object - if obj.type == "Tile" and not obj.locked then + if obj.type == "Tile" and not obj.locked and obj.memo ~= "resourceCounter" then -- check for matching object, otherwise use the first hit if obj.memo == searchForType then targetObject = obj