from retail

This commit is contained in:
NoM0Re
2025-01-05 17:26:58 +01:00
parent 40dcae7bcf
commit 13ab335094
13 changed files with 75 additions and 106 deletions
+3 -11
View File
@@ -6,9 +6,8 @@ local L = WeakAuras.L;
local function getAuraMatchesLabel(name)
local ids = WeakAuras.spellCache.GetSpellsMatching(name)
if(ids) then
local descText = "";
local numMatches = 0;
for id, _ in pairs(ids) do
for _ in pairs(ids) do
numMatches = numMatches + 1;
end
if(numMatches == 1) then
@@ -21,19 +20,12 @@ local function getAuraMatchesLabel(name)
end
end
-- the spell id table is sparse, so tremove doesn't work
local function spellId_tremove(tbl, pos)
for i = pos, 9, 1 do
tbl[i] = tbl[i + 1]
end
end
local function getAuraMatchesList(name)
local ids = WeakAuras.spellCache.GetSpellsMatching(name)
if(ids) then
local descText = "";
for id, _ in pairs(ids) do
local name, _, icon = GetSpellInfo(id);
for id in pairs(ids) do
local _, _, icon = GetSpellInfo(id);
if(icon) then
if(descText == "") then
descText = "|T"..icon..":0|t: "..id;