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
Joy
VuhDo
Commits
78a491f9
Commit
78a491f9
authored
6 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fixed range detection for out of phase units
parent
9edcb6ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
+18
-10
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+14
-9
VuhDoToolbox.lua
VuhDoToolbox.lua
+3
-1
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoEventHandler.lua
View file @
78a491f9
...
...
@@ -1033,16 +1033,21 @@ local function VUHDO_updateAllRange()
VUHDO_updateHealthBarsFor
(
tUnit
,
4
);
-- VUHDO_UPDATE_DEBUFF
end
-- Check if unit is in range
if
sIsRangeKnown
then
tIsInRange
=
tInfo
[
"connected"
]
and
(
1
==
IsSpellInRange
(
sRangeSpell
,
tUnit
)
or
((
tInfo
[
"dead"
]
or
tInfo
[
"charmed"
])
and
tInfo
[
"baseRange"
])
or
"player"
==
tUnit
or
(
VUHDO_isSpecialUnit
(
tUnit
)
and
CheckInteractDistance
(
tUnit
,
1
)));
-- Check if unit is phased
if
UnitIsWarModePhased
(
tUnit
)
or
not
UnitInPhase
(
tUnit
)
then
tIsInRange
=
false
;
else
tIsInRange
=
tInfo
[
"connected"
]
and
(
tInfo
[
"baseRange"
]
or
(
VUHDO_isSpecialUnit
(
tUnit
)
and
CheckInteractDistance
(
tUnit
,
1
)));
-- Check if unit is in range
if
sIsRangeKnown
then
tIsInRange
=
tInfo
[
"connected"
]
and
(
1
==
IsSpellInRange
(
sRangeSpell
,
tUnit
)
or
((
tInfo
[
"dead"
]
or
tInfo
[
"charmed"
])
and
tInfo
[
"baseRange"
])
or
"player"
==
tUnit
or
(
VUHDO_isSpecialUnit
(
tUnit
)
and
CheckInteractDistance
(
tUnit
,
1
)));
else
tIsInRange
=
tInfo
[
"connected"
]
and
(
tInfo
[
"baseRange"
]
or
(
VUHDO_isSpecialUnit
(
tUnit
)
and
CheckInteractDistance
(
tUnit
,
1
)));
end
end
if
tInfo
[
"range"
]
~=
tIsInRange
then
...
...
This diff is collapsed.
Click to expand it.
VuhDoToolbox.lua
View file @
78a491f9
...
...
@@ -279,12 +279,14 @@ local VUHDO_isTargetInRange = VUHDO_isTargetInRange;
-- returns wether or not a unit is in range
-- returns w
h
ether or not a unit is in range
function
VUHDO_isInRange
(
aUnit
)
if
"player"
==
aUnit
then
return
true
;
elseif
VUHDO_isSpecialUnit
(
aUnit
)
then
return
VUHDO_isTargetInRange
(
aUnit
);
elseif
UnitIsWarModePhased
(
aUnit
)
or
not
UnitInPhase
(
aUnit
)
then
return
false
;
elseif
(
sIsGuessRange
)
then
return
UnitInRange
(
aUnit
);
else
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
78a491f9
...
...
@@ -20,6 +20,7 @@ Bugfixes:
-- Fixed display of debuff tooltips after zone change
-- Fixed incoming heal and shield bar height when there is no mana bar
-- Fixed export of custom debuffs in profile string
-- Fixed range detection for out of phase units
Improvements:
...
...
This diff is collapsed.
Click to expand it.
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