Skip to content

Commit f1a18a5

Browse files
committed
we don't care about this yet
1 parent 266e963 commit f1a18a5

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

Elements/Range.lua

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -263,19 +263,19 @@ RangeEventFrame:SetScript("OnEvent", function()
263263
end
264264
end)
265265

266-
local function GetGroupUnit(unit)
267-
if unit == "player" or unit:match("^party") or unit:match("^raid") then return unit end
268-
269-
if UnitInParty(unit) or UnitInRaid(unit) then
270-
local isRaid = IsInRaid()
271-
for i = 1, GetNumGroupMembers() do
272-
local groupUnit = (isRaid and "raid" or "party") .. i
273-
if UnitIsUnit(unit, groupUnit) then
274-
return groupUnit
275-
end
276-
end
277-
end
278-
end
266+
-- local function GetGroupUnit(unit)
267+
-- if unit == "player" or unit:match("^party") or unit:match("^raid") then return unit end
268+
269+
-- if UnitInParty(unit) or UnitInRaid(unit) then
270+
-- local isRaid = IsInRaid()
271+
-- for i = 1, GetNumGroupMembers() do
272+
-- local groupUnit = (isRaid and "raid" or "party") .. i
273+
-- if UnitIsUnit(unit, groupUnit) then
274+
-- return groupUnit
275+
-- end
276+
-- end
277+
-- end
278+
-- end
279279

280280
local function UnitSpellRange(unit, spells)
281281
local isNotInRange;
@@ -313,7 +313,7 @@ local function UnitInSpellsRange(unit, category)
313313
end
314314

315315
local function FriendlyIsInRange(realUnit)
316-
local unit = GetGroupUnit(realUnit) or realUnit
316+
local unit = --[[GetGroupUnit(realUnit) or ]]realUnit
317317

318318
if UnitIsPlayer(unit) then
319319
if isRetail then
@@ -368,8 +368,6 @@ function UUF:UpdateRangeAlpha(frame, unit)
368368
inRange = UnitInSpellsRange(unit, "resurrect")
369369
elseif UnitCanAttack("player", unit) then
370370
inRange = UnitInSpellsRange(unit, "enemy")
371-
elseif UnitIsUnit(unit, "pet") then
372-
inRange = UnitInSpellsRange(unit, "pet")
373371
elseif UnitIsConnected(unit) then
374372
inRange = FriendlyIsInRange(unit)
375373
else

0 commit comments

Comments
 (0)