Skip to content
Snippets Groups Projects
Commit bf7bbf84 authored by Hachem_Muche's avatar Hachem_Muche
Browse files

getTalentLevel will correctly return 0 for unknown talents

parent 8f4cac5d
No related branches found
No related tags found
No related merge requests found
......@@ -700,7 +700,7 @@ function _M:getTalentLevel(id)
else
t = _M.talents_def[id]
end
return (self:getTalentLevelRaw(id)) * ((self.talents_types_mastery[t.type[1]] or 0) + 1)
return t and (self:getTalentLevelRaw(id)) * ((self.talents_types_mastery[t.type[1]] or 0) + 1) or 0
end
--- Talent type level, sum of all raw levels of talents inside
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment