small fixes

This commit is contained in:
NoM0Re
2025-03-14 12:14:56 +01:00
parent 3c574cb4a6
commit 514845c2aa
5 changed files with 14 additions and 18 deletions
+8 -6
View File
@@ -27,8 +27,8 @@ function spellCache.Build()
return
end
local holes
--[[
local holes
if WeakAuras.IsClassicEra() then
holes = {}
holes[63707] = 81743
@@ -57,7 +57,7 @@ function spellCache.Build()
id = id + 1
local name, _, icon = GetSpellInfo(id)
if(icon == 136243) then -- 136243 is the a gear icon, we can ignore those spells
if (icon == "Interface\\Icons\\trade_engineering") then -- 136243 is the a gear icon, we can ignore those spells
misses = 0;
elseif name and name ~= "" and icon then
cache[name] = cache[name] or {}
@@ -68,9 +68,11 @@ function spellCache.Build()
cache[name].spells = cache[name].spells .. "," .. id .. "=" .. icon
end
misses = 0
--if holes and holes[id] then
-- id = holes[id]
--end
--[[
if holes and holes[id] then
id = holes[id]
end
]]
else
misses = misses + 1
end
@@ -110,7 +112,7 @@ while misses < 4000000 do
id = id + 1
local name = GetSpellInfo(id)
local icon = GetSpellTexture(id)
if icon == 136243 then -- 136243 is the a gear icon, we can ignore those spells
if (icon == "Interface\\Icons\\trade_engineering") then -- 136243 is the a gear icon, we can ignore those spells
misses = 0
elseif name and name ~= "" and icon then
if misses > 10000 then