mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Buffer condition/cooldown icons on module init
* This should hopefully avoid some lag with slow hdd computers
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user