Skip to content

Commit

Permalink
Fix IsSpellInRange wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
InfusOnWoW committed Aug 9, 2024
1 parent d5183ef commit bce488a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ local IsSpellInRange = IsSpellInRange
if not IsSpellInRange then
IsSpellInRange = function(...)
local r = C_Spell.IsSpellInRange(...)
return r and 1 or 0
if r == true then
return 1
elseif r == false then
return 0
end
return nil
end
end

Expand Down

0 comments on commit bce488a

Please sign in to comment.