Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m removing error on index for get_list_elem |
|||
| Line 65: | Line 65: | ||
if (hero == nil) then return "Hero " .. hero_name .. " not found" end | if (hero == nil) then return "Hero " .. hero_name .. " not found" end | ||
local list = hero[var] | local list = hero[var] | ||
if (list == nil) then return "" end | if (list == nil) then return "Hero does not have " .. var .. " variable" end | ||
local element = list[number_int] | local element = list[number_int] | ||
if (element == nil) then return " | if (element == nil) then return "" end | ||
if localize=="true" then | if localize=="true" then | ||