Module:HeroData: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 146: Line 146:
local hero_data = heroes_data[hero_key]
local hero_data = heroes_data[hero_key]
if(hero_data == nil) then hero_data = p.get_json_item(hero_name) end
if(hero_data == nil) then hero_data = p.get_json_item(hero_key) end
if(hero_data == nil) then return "Hero not found." end
if(hero_data == nil) then return "Hero not found." end