Skip to content

Commit 3d2c7cd

Browse files
committed
not corr and not mirrored
1 parent b64c8c0 commit 3d2c7cd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ for _, entry in pairs(data.flavourText) do
5454
end
5555

5656
local function isAnointable(item)
57-
return (item.canBeAnointed or item.base.type == "Amulet")
57+
return (item.canBeAnointed or item.base.type == "Amulet") and not item.sanctified
58+
and not item.corrupted and not item.mirrored
5859
end
5960

6061
local ItemsTabClass = newClass("ItemsTab", "UndoHandler", "ControlHost", "Control", function(self, build)
@@ -406,7 +407,7 @@ holding Shift will put it in the second.]])
406407
self:AnointDisplayItem(1)
407408
end)
408409
self.controls.displayItemAnoint.shown = function()
409-
return self.displayItem and isAnointable(self.displayItem) and not self.displayItem.sanctified
410+
return self.displayItem and isAnointable(self.displayItem)
410411
end
411412
self.controls.displayItemAnoint2 = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint,"TOPRIGHT",true}, {8, 0, 100, 20}, "Anoint 2...", function()
412413
self:AnointDisplayItem(2)

0 commit comments

Comments
 (0)