Commit 29cbd220 authored by Simpy's avatar Simpy 🐹
Browse files

range phase check only players

parent b655b036
......@@ -8,9 +8,7 @@ local texCoords = {
}
function UF:PostUpdate_PhaseIcon(isPhased)
if isPhased then
self:SetTexCoord(unpack(texCoords[isPhased == 2 and 2 or 1]))
end
self:SetTexCoord(unpack(texCoords[isPhased == 2 and 2 or 1]))
end
function UF:Construct_PhaseIcon(frame)
......
......@@ -11,6 +11,7 @@ local UnitInRange = UnitInRange
local UnitIsConnected = UnitIsConnected
local UnitIsDeadOrGhost = UnitIsDeadOrGhost
local UnitPhaseReason = UnitPhaseReason
local UnitIsPlayer = UnitIsPlayer
local UnitIsUnit = UnitIsUnit
local SR = {}
......@@ -59,7 +60,7 @@ local function friendlyIsInRange(unit)
unit = getUnit(unit) -- swap the unit with `raid#` or `party#` when its NOT `player`, UnitIsUnit is true, and its not using `raid#` or `party#` already
end
if UnitPhaseReason(unit) then
if UnitPhaseReason(unit) and UnitIsPlayer(unit) then
return false -- is not in same phase
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment