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