Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) updated get_scalar_type to be able to use hero name |
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 | if(hero_data == nil) then hero_data = p.get_json_item(hero_name) end | ||
if(hero_data == nil) then return "Hero not found." end | if(hero_data == nil) then return "Hero not found." end | ||