Commit a1fa98de authored by Ivaria's avatar Ivaria
Browse files

Removed deprecated Blizzard API UnitAlternatePowerInfo

parent 1066d177
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment