Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VuhDo
VuhDo
Commits
cf61b553
Commit
cf61b553
authored
Sep 14, 2022
by
Ivaria
Browse files
Merge branch 'wotlkc' into tbcc
parents
e40395bd
16aa61f6
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
VuhDoDirections.lua
VuhDoDirections.lua
+8
-2
VuhDoToolbox.lua
VuhDoToolbox.lua
+1
-1
No files found.
VuhDoDirections.lua
View file @
cf61b553
...
...
@@ -79,10 +79,16 @@ local VUHDO_getRedGreenForDistance = VUHDO_getRedGreenForDistance;
--
local
tInfo
;
local
tIsInInstance
;
function
VUHDO_shouldDisplayArrow
(
aUnit
)
tIsInInstance
,
_
=
IsInInstance
();
if
tIsInInstance
then
return
false
;
end
tInfo
=
VUHDO_RAID
[
aUnit
];
return
not
UnitIsUnit
(
"player"
,
aUnit
)
return
not
UnitIsUnit
(
"player"
,
aUnit
)
and
tInfo
and
(
not
tInfo
[
"range"
]
or
sIsAlways
)
and
(
not
sIsDeadOnly
or
tInfo
[
"dead"
])
...
...
VuhDoToolbox.lua
View file @
cf61b553
...
...
@@ -932,7 +932,7 @@ function VUHDO_getUnitDirection(aUnit)
tUnitX
,
tUnitY
=
VUHDO_getUnitMapPosition
(
aUnit
);
if
(
tUnitX
or
0
)
+
(
tUnitY
or
0
)
<=
0
then
return
nil
;
end
tFacing
=
GetPlayerFacing
();
tFacing
=
GetPlayerFacing
()
or
0
;
tFacing
=
tFacing
<
0
and
tFacing
+
VUHDO_2_PI
or
tFacing
;
return
VUHDO_PI
-
VUHDO_atan2
(
tPlayerX
-
tUnitX
,
tUnitY
-
tPlayerY
)
-
tFacing
;
...
...
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