Module:HeroDataArrays: Difference between revisions

LVL (talk | contribs)
Updated to not have issues when stats are missing.
added in_development check
Line 7: Line 7:
-- Just get heroes that are playable
-- Just get heroes that are playable
for i, heroData in pairs(allHeroData) do
for i, heroData in pairs(allHeroData) do
if heroData["InDevelopment"] == false then
     if heroData["IsDisabled"] == false then
     if heroData["IsDisabled"] == false then
         table.insert(inGameHeroData, heroData)
         table.insert(inGameHeroData, heroData)
        end
     end
     end
end
end