Module:HeroDataArrays: Difference between revisions

Jump to navigation Jump to search
added reload delay to reload table
remove heroes without name to fix bug with werewolf
Line 5: Line 5:
local inGameHeroData = {}
local inGameHeroData = {}


-- Just get heroes that are playable
-- Just get heroes that are playable and have a "name" in HeroData
for i, heroData in pairs(allHeroData) do
for i, heroData in pairs(allHeroData) do
if heroData["InDevelopment"] == false then
if heroData["InDevelopment"] == false then
     if heroData["IsDisabled"] == false then
     if heroData["IsDisabled"] == false then
    if heroData["Name"] ~= nil then
         table.insert(inGameHeroData, heroData)
         table.insert(inGameHeroData, heroData)
        end
         end
         end
     end
     end