Skip to content

Commit 9cf063e

Browse files
committed
refactor to CalcSetup, fix tooltip
1 parent 5ec5a91 commit 9cf063e

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

src/Classes/PassiveSpec.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -801,16 +801,6 @@ function PassiveSpecClass:DeallocNode(node)
801801
self:DeallocSingleNode(depNode)
802802
end
803803

804-
-- clear any item in Ring 3 when The Unseen Hand is deallocated
805-
if node.id == 43902 and node.dn:match("Unseen Hand") then
806-
local ringSlot = self.build.itemsTab.slots["Ring 3"]
807-
if ringSlot then
808-
ringSlot.selIndex = 1
809-
ringSlot:SetSelItemId(0)
810-
self.build.buildFlag = true
811-
end
812-
end
813-
814804
-- Rebuild all paths and dependencies for all allocated nodes
815805
self:BuildAllDependsAndPaths()
816806
end

src/Modules/CalcSetup.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,10 @@ function calcs.initEnv(build, mode, override, specEnv)
687687
goto continue
688688
end
689689
end
690+
-- ignore item in Ring 3 if The Unseen Hand is not allocated
691+
if slotName == "Ring 3" and not (env.allocNodes[43902] and env.allocNodes[43902].dn:match("Unseen Hand")) then
692+
goto continue
693+
end
690694
local item
691695
if slotName == override.repSlotName then
692696
item = override.repItem

0 commit comments

Comments
 (0)