Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m get_lore uses _get_string instead of get_string
Sur (talk | contribs)
m get_lore bugfix
Line 46: Line 46:
p.get_lore = function(frame)
p.get_lore = function(frame)
local hero_name = frame.args[1]
local hero_name = frame.args[1]
lore_key = p.get_json_item(hero_name)
lore_key = p.get_json_item(hero_name)['Lore']
if (lore_key ~= nil) then
if (lore_key ~= nil) then
return lang_module._get_string(lore_key)
return lang_module._get_string(lore_key)