excluded resource counters

This commit is contained in:
Chr1Z93 2023-11-05 18:03:21 +01:00
parent 8b04ee0245
commit 291465ca13

View File

@ -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