Skip to content

Commit

Permalink
- fix range check for unset ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed Jan 10, 2025
1 parent 51b2fee commit 44fdc54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -839,9 +839,9 @@ Plater.AnchorNamesByPhraseId = {

if not rangeChecker then
rangeChecker = function (unit)
local minRange, maxRange = (LibRangeCheck:GetRange(unit, nil, true) or 0) <= (rangeCheckRange or 40)
Plater.EndLogPerformanceCore("Plater-Core", "Update", "CheckRange")
return maxRange or minRange
local minRange, maxRange = (LibRangeCheck:GetRange(unit, nil, true) or 0)
maxRange = maxRange or minRange or 0
return maxRange <= (rangeCheckRange or 40)
end
Plater.GetSpellForRangeCheck()
end
Expand Down

0 comments on commit 44fdc54

Please sign in to comment.