Skip to content

Commit

Permalink
safer
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Jan 29, 2025
1 parent 2be4cce commit 7998c40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ElvUI/Core/Modules/UnitFrames/Elements/Range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ function UF:UnitInSpellsRange(unit, which)
return range
end

if which == 2 then -- friendly check follow interact when not in combat
return not InCombatLockdown() and CheckInteractDistance(unit, 4)
-- friendly check follow interact when not in combat
if which == 2 and not InCombatLockdown() then
return CheckInteractDistance(unit, 4)
end

return 1 -- no spells checked
Expand Down

0 comments on commit 7998c40

Please sign in to comment.