Module:HeroData: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) No edit summary |
Gammaton32 (talk | contribs) 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( | 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 | ||