Module:Sandbox/One Bar: Difference between revisions

One Bar (talk | contribs)
No edit summary
One Bar (talk | contribs)
No edit summary
Line 22: Line 22:
local function filtered_heroes()
local function filtered_heroes()
local filtered = {}
local filtered = {}
for _, hero in ipairs(heroes_data) do
for _, hero in pairs(heroes_data) do
local is_disabled = hero["IsDisabled"]
if (not hero["IsDisabled"]) then
if (is_disabled == "false") then
table.insert(filtered, hero)
table.insert(filtered, hero)
end
end