Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sean Anderson / Shrom
ElvUI
Commits
29cbd220
Commit
29cbd220
authored
Oct 13, 2020
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
range phase check only players
parent
b655b036
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ElvUI/Modules/UnitFrames/Elements/PhaseIndicator.lua
ElvUI/Modules/UnitFrames/Elements/PhaseIndicator.lua
+1
-3
ElvUI/Modules/UnitFrames/Elements/Range.lua
ElvUI/Modules/UnitFrames/Elements/Range.lua
+2
-1
No files found.
ElvUI/Modules/UnitFrames/Elements/PhaseIndicator.lua
View file @
29cbd220
...
...
@@ -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
)
...
...
ElvUI/Modules/UnitFrames/Elements/Range.lua
View file @
29cbd220
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment