Commit 3fe5dfc5 authored by Ivaria's avatar Ivaria
Browse files

Removed deprecated Blizzard APIs UnitIsWarModePhased/UnitInPhase

parent dbd17bfe
......@@ -205,7 +205,7 @@ end
--
local function VUHDO_isPhasedValidator(anInfo, _)
if UnitIsWarModePhased(anInfo["unit"]) or not UnitInPhase(anInfo["unit"]) then
if UnitPhaseReason(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
......
......@@ -1083,7 +1083,7 @@ local function VUHDO_updateAllRange()
end
-- Check if unit is phased
if UnitIsWarModePhased(tUnit) or not UnitInPhase(tUnit) then
if UnitPhaseReason(tUnit) then
tIsInRange = false;
else
-- Check if unit is in range
......
......@@ -286,7 +286,7 @@ function VUHDO_isInRange(aUnit)
return true;
elseif VUHDO_isSpecialUnit(aUnit) then
return VUHDO_isTargetInRange(aUnit);
elseif UnitIsWarModePhased(aUnit) or not UnitInPhase(aUnit) then
elseif UnitPhaseReason(aUnit) then
return false;
elseif (sIsGuessRange) then
return UnitInRange(aUnit);
......
......@@ -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
......
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