Buffer condition/cooldown icons on module init

* This should hopefully avoid some lag with slow hdd computers
This commit is contained in:
BeniS
2013-02-23 18:53:27 +13:00
parent 035ce26728
commit f4f9e319d8
4 changed files with 58 additions and 22 deletions

View File

@@ -361,6 +361,16 @@ function Spells.getSpellByIcon(iconId)
return nil
end
function Spells.getSpellIconIds()
local ids = {}
for profile,data in pairs(SpellInfo) do
for k,spell in pairs(data) do
table.insert(ids, spell.id)
end
end
return ids
end
function Spells.getSpellProfileByWords(words)
for profile,data in pairs(SpellInfo) do
for k,spell in pairs(data) do