Skip to content

Commit 9add6fb

Browse files
committed
Remove CheckInteractDistance from range checker, as its protected now
1 parent bca4148 commit 9add6fb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.luacheckrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ read_globals = {
4747
"CanHearthAndResurrectFromArea",
4848
"CastingInfo",
4949
"ChannelInfo",
50-
"CheckInteractDistance",
5150
"CreateFrame",
5251
"GetArenaOpponentSpec",
5352
"GetBuildInfo",

modules/range.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ local function checkRange(self)
4848
-- That didn't work, but they are grouped lets try the actual API for this, it's a bit flaky though and not that useful generally
4949
elseif( UnitInRaid(frame.unit) or UnitInParty(frame.unit) ) then
5050
frame:SetRangeAlpha(UnitInRange(frame.unit, "player") and ShadowUF.db.profile.units[frame.unitType].range.inAlpha or ShadowUF.db.profile.units[frame.unitType].range.oorAlpha)
51-
-- Nope, fall back to interaction :(
51+
-- Nope, just show in range :(
5252
else
53-
frame:SetRangeAlpha(CheckInteractDistance(frame.unit, 4) and ShadowUF.db.profile.units[frame.unitType].range.inAlpha or ShadowUF.db.profile.units[frame.unitType].range.oorAlpha)
53+
frame:SetRangeAlpha(ShadowUF.db.profile.units[frame.unitType].range.inAlpha)
5454
end
5555
end
5656

0 commit comments

Comments
 (0)