diff --git a/targetbot/looting.lua b/targetbot/looting.lua index 9e41528..fb6ce87 100644 --- a/targetbot/looting.lua +++ b/targetbot/looting.lua @@ -224,7 +224,7 @@ TargetBot.Looting.lootContainer = function(lootContainers, container) for i, item in ipairs(container:getItems()) do if item:isContainer() and not itemsById[item:getId()] then nextContainer = item - elseif itemsById[item:getId()] or (ui.everyItem:isOn() and not item:isContainer()) then + elseif (not ui.everyItem:isOn() and itemsById[item:getId()]) or (ui.everyItem:isOn() and (not item:isContainer() and not itemsById[item:getId()])) then item.lootTries = (item.lootTries or 0) + 1 if item.lootTries < 5 then -- if can't be looted within 0.5s then skip it return TargetBot.Looting.lootItem(lootContainers, item) diff --git a/targetbot/looting.otui b/targetbot/looting.otui index aa973e3..027f7af 100644 --- a/targetbot/looting.otui +++ b/targetbot/looting.otui @@ -17,7 +17,7 @@ TargetBotLootingPanel < Panel BotSwitch id: everyItem - !text: tr("Loot every item") + !text: tr("Loot every item, except these") margin-top: 2 Label @@ -66,4 +66,4 @@ TargetBotLootingPanel < Panel anchors.left: parent.left anchors.verticalCenter: prev.verticalCenter text: Min. capacity: - margin-left: 5 \ No newline at end of file + margin-left: 5