File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -852,11 +852,16 @@ function PassiveSpecClass:BuildAllDependsAndPaths()
852852 for id , node in pairs (self .nodes ) do
853853 if node .type == " Mastery" and self .masterySelections [id ] then
854854 local effect = self .tree .masteryEffects [self .masterySelections [id ]]
855- node .sd = effect .sd
856- node .allMasteryOptions = false
857- node .reminderText = { " Tip: Right click to select a different effect" }
858- self .tree :ProcessStats (node )
859- self .allocatedMasteryCount = self .allocatedMasteryCount + 1
855+ if effect then
856+ node .sd = effect .sd
857+ node .allMasteryOptions = false
858+ node .reminderText = { " Tip: Right click to select a different effect" }
859+ self .tree :ProcessStats (node )
860+ self .allocatedMasteryCount = self .allocatedMasteryCount + 1
861+ else
862+ self .nodes [id ].alloc = false
863+ self .allocNodes [id ] = nil
864+ end
860865 elseif node .type == " Mastery" then
861866 self :AddMasteryEffectOptionsToNode (node )
862867 elseif node .type == " Notable" and node .alloc then
You can’t perform that action at this time.
0 commit comments