Skip to content

Commit

Permalink
just incase a lot of spells are in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Dec 4, 2024
1 parent a438619 commit 2c0414d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ElvUI/Core/Modules/UnitFrames/Elements/Range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,19 @@ function UF:UpdateRangeSpells()
end

function UF:UnitSpellRange(unit, spells)
local failed
for spell in next, spells do
local range = IsSpellInRange(spell, unit)
if range ~= nil then
return range
if range then
return true
elseif range ~= nil then
failed = true -- oh no
end
end

if failed then
return false
end
end

function UF:UnitInSpellsRange(unit, which)
Expand Down

0 comments on commit 2c0414d

Please sign in to comment.