Skip to content

Commit bc510de

Browse files
committed
fix: fix the spell texture
1 parent d0b566c commit bc510de

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Core/Utilities/Async.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ function W.Utilities.Async.WithItemLink(itemLink, callback)
9191
return W.Utilities.Async.WithItemID(itemID, callback)
9292
end
9393

94+
---@alias SpellCallback fun(spellInstance:SpellMixin)
95+
9496
---Load spell data asynchronously and execute callback
9597
---@param spellID number The spell ID to load
96-
---@param callback function? Callback function to execute when spell is loaded
98+
---@param callback SpellCallback? Callback function to execute when spell is loaded
9799
---@return any? spell Cached spell data if available
98100
function W.Utilities.Async.WithSpellID(spellID, callback)
99101
if type(spellID) ~= "number" then
@@ -133,7 +135,7 @@ end
133135
---Load multiple items asynchronously from a table
134136
---@param itemIDTable table Table containing item IDs
135137
---@param tType string? Type of table processing
136-
---@param callback function? Callback for individual items
138+
---@param callback ItemCallback? Callback for individual items
137139
---@param tableCallback function? Callback for completed table
138140
function W.Utilities.Async.WithItemIDTable(itemIDTable, tType, callback, tableCallback)
139141
if type(itemIDTable) ~= "table" then
@@ -229,7 +231,7 @@ end
229231
---Load multiple spells asynchronously from a table
230232
---@param spellIDTable table Table containing spell IDs
231233
---@param tType string? Type of table processing
232-
---@param callback function? Callback for individual spells
234+
---@param callback SpellCallback? Callback for individual spells
233235
---@param tableCallback function? Callback for completed table
234236
function W.Utilities.Async.WithSpellIDTable(spellIDTable, tType, callback, tableCallback)
235237
if type(spellIDTable) ~= "table" then

Modules/Item/Inspect.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function circleIconPrototype:AsEnchant(data)
203203
return self:Reset()
204204
end
205205

206-
local tex = spell:GetSpellIcon()
206+
local tex = spell:GetSpellTexture()
207207
if not tex then
208208
return self:Reset()
209209
end

0 commit comments

Comments
 (0)