Module:Pets: Difference between revisions

getCombatPetSources: Fix
(Update for v1.1)
(getCombatPetSources: Fix)
Line 14: Line 14:
local areas = Areas.getAreas(function(area) return area.pet ~= nil end)
local areas = Areas.getAreas(function(area) return area.pet ~= nil end)
for i, area in ipairs(areas) do
for i, area in ipairs(areas) do
result[area.petID] = { id = area.id, name = area.name, type = area.type, weight = area.weight }
result[area.pet.petID] = { id = area.id, name = area.name, type = area.type, weight = area.weight }
end
end
return result
end
end
local CombatPetSources = getCombatPetSources()
local CombatPetSources = getCombatPetSources()