393
edits
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
function p.getSkillTreeNodesWithModifier(modifierCriteria) | function p.getSkillTreeNodesWithModifier(modifierCriteria) | ||
local nodesWithModifier = SkillTree.getSkillTreeNodes( | local nodesWithModifier = SkillTree.getSkillTreeNodes( | ||
function( | function(nodeWithSkill) | ||
local node = | local node = nodeWithSkill.nodeData | ||
if node.modifiers | if node and node.modifiers then | ||
local mods = Modifiers.getMatchingModifiers(node.modifiers, modifierCriteria) | local mods = Modifiers.getMatchingModifiers(node.modifiers, modifierCriteria) | ||
if not Shared.tableIsEmpty(mods.matched) then | if not Shared.tableIsEmpty(mods.matched) then | ||
return | return nodeWithSkill | ||
end | end | ||
end | end |
edits