@@ -2405,7 +2405,7 @@ function ItemsTabClass:anointItem(node)
24052405 return item
24062406end
24072407
2408- --- Appends tooltip information for anointing a new passive tree node onto the currently editing amulet
2408+ --- Appends tooltip information for anointing a new passive tree node onto the currently editing item
24092409--- @param tooltip table @The tooltip to append into
24102410--- @param node table @The passive tree node that will be anointed , or nil to remove the current anoint.
24112411function ItemsTabClass :AppendAnointTooltip (tooltip , node , actionText )
@@ -2439,8 +2439,9 @@ function ItemsTabClass:AppendAnointTooltip(tooltip, node, actionText)
24392439 header = " ^7" .. actionText .. " nothing will give you: "
24402440 end
24412441 local calcFunc = self .build .calcsTab :GetMiscCalculator ()
2442- local outputBase = calcFunc ({ repSlotName = " Amulet" , repItem = self .displayItem })
2443- local outputNew = calcFunc ({ repSlotName = " Amulet" , repItem = self :anointItem (node ) })
2442+ local repSlotName = self .displayItem .base and self .displayItem .base .type or " Amulet"
2443+ local outputBase = calcFunc ({ repSlotName = repSlotName , repItem = self .displayItem })
2444+ local outputNew = calcFunc ({ repSlotName = repSlotName , repItem = self :anointItem (node ) })
24442445 local numChanges = self .build :AddStatComparesToTooltip (tooltip , outputBase , outputNew , header )
24452446 if node and numChanges == 0 then
24462447 tooltip :AddLine (14 , " ^7" .. actionText .. " " .. node .dn .. " changes nothing." )
0 commit comments