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(node | function(nodeWithSkill) | ||
if node.modifiers ~= nil then | local node = nodeWithSkill.nodeData | ||
if node and 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 | |||
return true | |||
end | |||
end | end | ||
return false | return false |
edits