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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user