393
edits
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 39: | Line 39: | ||
local nodesWithModifier = SkillTree.getSkillTreeNodes( | local nodesWithModifier = SkillTree.getSkillTreeNodes( | ||
function(nodeWithSkill) | function(nodeWithSkill) | ||
if nodeWithSkill and nodeWithSkill.nodeData then | if nodeWithSkill and nodeWithSkill.nodeData then | ||
local node = nodeWithSkill.nodeData | local node = nodeWithSkill.nodeData | ||
if node.modifiers ~= nil then | if node.modifiers ~= nil 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 nodeWithSkill | return nodeWithSkill | ||
end | end | ||
end | end |
edits