SilverDragon - Rare Scanner

SilverDragon - Rare Scanner

20M Downloads

Wrong variable in loop

Dairyman opened this issue ยท 1 comments

commented

Shouldn't the id in the two loops be mobid?

wow-silverdragon/mobs.lua

Lines 196 to 214 in df03ad9

func = function(info)
if not ns.mobsByZone[zone] then return end
for mobid, locations in pairs(ns.mobsByZone[zone]) do
core.db.global.ignore[id] = false
end
self:BuildIgnoreList(info.options)
end,
width = "half",
order = 1,
},
none = {
type = "execute",
name = NONE,
desc = "Deselect every mob in the list",
func = function(info)
if not ns.mobsByZone[zone] then return end
for mobid, locations in pairs(ns.mobsByZone[zone]) do
core.db.global.ignore[id] = true
end

commented

Yeah, I refactored poorly and didn't test well. Thanks for pointing it out!