Merge pull request #532 from argonui/hotkey-fix

Fixed bracket placement for "Remove One Use" hotkey
This commit is contained in:
Entrox-Licher 2024-01-09 21:54:20 -05:00 committed by GitHub
commit bf0cb5cd01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ function removeOneUse(playerColor, hoveredObject)
local searchForType = useInfo.type
if searchForType then searchForType = searchForType:lower() end
for _, obj in ipairs(searchLib.onObject(hoveredObject), "isTileOrToken") do
for _, obj in ipairs(searchLib.onObject(hoveredObject, "isTileOrToken")) do
if not obj.locked and obj.memo ~= "resourceCounter" then
-- check for matching object, otherwise use the first hit
if obj.memo == searchForType then