Multientry (#7)

* from retail

* from retail

* from retail

* from retail

* from retail

* from retail

* remove new threat functions as they are not well implemented for now
This commit is contained in:
NoM0Re
2024-11-27 12:09:02 +01:00
committed by GitHub
parent eb8221cf89
commit 13f734038d
67 changed files with 3493 additions and 969 deletions
+5 -2
View File
@@ -212,14 +212,17 @@ function spellCache.CorrectAuraName(input)
error("spellCache has not been loaded. Call WeakAuras.spellCache.Load(...) first.")
end
local spellId = WeakAuras.SafeToNumber(input);
local spellId = WeakAuras.SafeToNumber(input)
if type(input) == "string" and input:find("|", nil, true) then
spellId = WeakAuras.SafeToNumber(input:match("|Hspell:(%d+)"))
end
if(spellId) then
local name, _, icon = GetSpellInfo(spellId);
if(name) then
spellCache.AddIcon(name, spellId, icon)
return name, spellId;
else
return "Invalid Spell ID";
return "Invalid Spell ID", spellId;
end
else
local ret = spellCache.BestKeyMatch(input);