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
Valery Kornilovich
VuhDo
Commits
a1fa98de
Commit
a1fa98de
authored
4 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Removed deprecated Blizzard API UnitAlternatePowerInfo
parent
1066d177
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
VuhDoToolbox.lua
VuhDoToolbox.lua
+12
-3
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoToolbox.lua
View file @
a1fa98de
...
...
@@ -21,7 +21,8 @@ local GetTime = GetTime;
local
GetRealZoneText
=
GetRealZoneText
;
local
GetSpellInfo
=
GetSpellInfo
;
local
SetMapToCurrentZone
=
SetMapToCurrentZone
;
local
UnitAlternatePowerInfo
=
UnitAlternatePowerInfo
;
local
UnitPowerBarID
=
UnitPowerBarID
;
local
GetUnitPowerBarInfoByID
=
GetUnitPowerBarInfoByID
;
local
WorldMapFrame
=
WorldMapFrame
;
local
GetMouseFocus
=
GetMouseFocus
;
local
GetPlayerFacing
=
GetPlayerFacing
;
...
...
@@ -755,8 +756,16 @@ end
--
function
VUHDO_isAltPowerActive
(
aUnit
)
local
tBarType
,
_
,
_
,
_
,
_
,
tIsHideFromOthers
=
UnitAlternatePowerInfo
(
aUnit
);
return
tBarType
and
(
not
tIsHideFromOthers
or
"player"
==
aUnit
);
local
tBarId
=
UnitPowerBarID
(
aUnit
);
local
tBarInfo
=
GetUnitPowerBarInfoByID
(
tBarId
);
if
tBarInfo
then
return
tBarInfo
.
barType
and
(
not
tBarInfo
.
hideFromOthers
or
"player"
==
aUnit
);
else
return
false
;
end
end
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
a1fa98de
...
...
@@ -12,6 +12,7 @@ Known issues:
Bugfixes:
-- Removed deprecated debuff 'Bloodbath'
-- Removed deprecated event UNIT_HEALTH_FREQUENT
-- Removed deprecated Blizzard API UnitAlternatePowerInfo
-- 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