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
omicron
VuhDo
Commits
3fe5dfc5
Commit
3fe5dfc5
authored
4 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Removed deprecated Blizzard APIs UnitIsWarModePhased/UnitInPhase
parent
dbd17bfe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
VuhDoBouquetValidators.lua
VuhDoBouquetValidators.lua
+6
-2
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+1
-1
VuhDoToolbox.lua
VuhDoToolbox.lua
+1
-1
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoBouquetValidators.lua
View file @
3fe5dfc5
...
...
@@ -205,7 +205,7 @@ end
--
local
function
VUHDO_isPhasedValidator
(
anInfo
,
_
)
if
Unit
IsWarModePhased
(
anInfo
[
"unit"
])
or
not
UnitInPhase
(
anInfo
[
"unit"
])
then
if
Unit
PhaseReason
(
anInfo
[
"unit"
])
then
return
true
,
"Interface\\TargetingFrame\\UI-PhasingIcon"
,
-
1
,
-
1
,
-
1
,
nil
,
nil
,
0
.
15625
,
0
.
84375
,
0
.
15625
,
0
.
84375
;
else
...
...
@@ -217,12 +217,16 @@ end
--
local
function
VUHDO_isWarModePhasedValidator
(
anInfo
,
_
)
if
UnitIsWarModePhased
(
anInfo
[
"unit"
])
then
local
tPhaseReason
=
UnitPhaseReason
(
anInfo
[
"unit"
]);
if
tPhaseReason
and
tPhaseReason
==
Enum
.
PhaseReason
.
WarMode
then
return
true
,
"Interface\\TargetingFrame\\UI-PhasingIcon"
,
-
1
,
-
1
,
-
1
,
nil
,
nil
,
0
.
15625
,
0
.
84375
,
0
.
15625
,
0
.
84375
;
else
return
false
,
nil
,
-
1
,
-
1
,
-
1
;
end
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoEventHandler.lua
View file @
3fe5dfc5
...
...
@@ -1083,7 +1083,7 @@ local function VUHDO_updateAllRange()
end
-- Check if unit is phased
if
Unit
IsWarModePhased
(
tUnit
)
or
not
UnitInPhase
(
tUnit
)
then
if
Unit
PhaseReason
(
tUnit
)
then
tIsInRange
=
false
;
else
-- Check if unit is in range
...
...
This diff is collapsed.
Click to expand it.
VuhDoToolbox.lua
View file @
3fe5dfc5
...
...
@@ -286,7 +286,7 @@ function VUHDO_isInRange(aUnit)
return
true
;
elseif
VUHDO_isSpecialUnit
(
aUnit
)
then
return
VUHDO_isTargetInRange
(
aUnit
);
elseif
Unit
IsWarModePhased
(
aUnit
)
or
not
UnitInPhase
(
aUnit
)
then
elseif
Unit
PhaseReason
(
aUnit
)
then
return
false
;
elseif
(
sIsGuessRange
)
then
return
UnitInRange
(
aUnit
);
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
3fe5dfc5
...
...
@@ -14,6 +14,7 @@ Bugfixes:
-- Removed deprecated event UNIT_HEALTH_FREQUENT
-- Removed deprecated Blizzard APIs GetNumFriends/GetFriendInfo
-- Removed deprecated Blizzard API UnitAlternatePowerInfo
-- Removed deprecated Blizzard APIs UnitIsWarModePhased/UnitInPhase
-- Migrated backdrops to BackdropTemplate and BackdropTemplateMixin
...
...
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