Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Classes/PassiveSpec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,15 @@ end

function PassiveSpecClass:AllocateMasteryEffects(masteryEffects)
for i = 1, #masteryEffects - 1, 4 do

local effectId = masteryEffects:byte(i) * 256 + masteryEffects:byte(i + 1)
local id = masteryEffects:byte(i + 2) * 256 + masteryEffects:byte(i + 3)

self.masterySelections[id] = effectId
local effect = self.tree.masteryEffects[effectId]
self.allocNodes[id].sd = effect.sd
self.allocNodes[id].allMasteryOptions = false
self.allocNodes[id].reminderText = { "Tip: Right click to select a different effect" }
self.tree:ProcessStats(self.allocNodes[id])
self.masterySelections[id] = effectId
self.allocatedMasteryCount = self.allocatedMasteryCount + 1
end
end
Expand Down
6 changes: 3 additions & 3 deletions src/Classes/PassiveTreeView.lua
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build)
end

local function addModInfoToTooltip(node, i, line)
if node.mods[i].list then
if launch.devModeAlt then
if node.mods[i] then
if launch.devModeAlt and node.mods[i].list then
-- Modifier debugging info
local modStr
for _, mod in pairs(node.mods[i].list) do
Expand All @@ -930,8 +930,8 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build)
line = line .. " " .. modStr
end
end
tooltip:AddLine(16, ((node.mods[i].extra or not node.mods[i].list) and colorCodes.UNSUPPORTED or colorCodes.MAGIC)..line)
end
tooltip:AddLine(16, ((node.mods[i].extra or not node.mods[i].list) and colorCodes.UNSUPPORTED or colorCodes.MAGIC)..line)
end

-- If node is a Mastery node, check if compare tree is on
Expand Down