This commit is contained in:
Bunny67
2020-07-26 14:29:54 +03:00
parent 368a646da5
commit 0dfc91e3a3
6 changed files with 20 additions and 33 deletions
+1 -3
View File
@@ -92,9 +92,7 @@ function spellCache.GetIcon(name)
if (icons) then
if (icons.spells) then
for spellId, icon in pairs(icons.spells) do
if (not bestMatch) then
bestMatch = spellId
elseif(type(spellId) == "number" and IsSpellKnown(spellId)) then
if not bestMatch or (type(spellId) == "number" and IsSpellKnown(spellId)) then
bestMatch = spellId
end
end