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 -- Check for nodeWithSkill structure | |||
local node = nodeWithSkill.nodeData | |||
if node.modifiers ~= nil then | |||
local mods = Modifiers.getMatchingModifiers(node.modifiers, modifierCriteria) | |||
if not Shared.tableIsEmpty(mods.matched) then | |||
return nodeWithSkill -- Return the whole structure, not just the node | |||
end | |||
end | |||
end | end | ||
return false | |||
end | end | ||
) | ) |
edits