excluded resource counters
This commit is contained in:
parent
8b04ee0245
commit
291465ca13
@ -135,7 +135,7 @@ function removeOneUse(playerColor, hoveredObject)
|
|||||||
|
|
||||||
for _, v in ipairs(searchOnObj(hoveredObject)) do
|
for _, v in ipairs(searchOnObj(hoveredObject)) do
|
||||||
local obj = v.hit_object
|
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
|
-- check for matching object, otherwise use the first hit
|
||||||
if obj.memo == searchForType then
|
if obj.memo == searchForType then
|
||||||
targetObject = obj
|
targetObject = obj
|
||||||
|
Loading…
x
Reference in New Issue
Block a user