mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Preload properly with g_textures.preload
* Thanks Baxnie for advising me of this method :)
This commit is contained in:
@@ -371,6 +371,17 @@ function Spells.getSpellIconIds()
|
||||
return ids
|
||||
end
|
||||
|
||||
function Spells.getSpellProfileById(id)
|
||||
for profile,data in pairs(SpellInfo) do
|
||||
for k,spell in pairs(data) do
|
||||
if spell.id == id then
|
||||
return profile
|
||||
end
|
||||
end
|
||||
end
|
||||
return nil
|
||||
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