Commit e71064f4 authored by Ivaria's avatar Ivaria
Browse files

Disable use of UnitGetIncomingHeals API until Blizzard hotfix

parent 599a67da
......@@ -1178,23 +1178,19 @@ function VUHDO_unitGetIncomingHeals(aUnit, aCasterUnit)
return 0;
end
if not UnitGetIncomingHeals then
if VUHDO_LibHealComm then
local tTargetGUID = UnitGUID(aUnit);
if VUHDO_LibHealComm then
local tTargetGUID = UnitGUID(aUnit);
if aCasterUnit then
local tCasterGUID = UnitGUID(aCasterUnit);
if aCasterUnit then
local tCasterGUID = UnitGUID(aCasterUnit);
return (VUHDO_LibHealComm:GetHealAmount(tTargetGUID, VUHDO_LibHealComm.ALL_HEALS, GetTime() + VUHDO_INCOMING_HEAL_WINDOW, tCasterGUID) or 0) * (VUHDO_LibHealComm:GetHealModifier(tTargetGUID) or 1);
else
return (VUHDO_LibHealComm:GetHealAmount(tTargetGUID, VUHDO_LibHealComm.ALL_HEALS, GetTime() + VUHDO_INCOMING_HEAL_WINDOW) or 0) * (VUHDO_LibHealComm:GetHealModifier(tTargetGUID) or 1);
end
return (VUHDO_LibHealComm:GetHealAmount(tTargetGUID, VUHDO_LibHealComm.ALL_HEALS, GetTime() + VUHDO_INCOMING_HEAL_WINDOW, tCasterGUID) or 0) * (VUHDO_LibHealComm:GetHealModifier(tTargetGUID) or 1);
else
return 0;
return (VUHDO_LibHealComm:GetHealAmount(tTargetGUID, VUHDO_LibHealComm.ALL_HEALS, GetTime() + VUHDO_INCOMING_HEAL_WINDOW) or 0) * (VUHDO_LibHealComm:GetHealModifier(tTargetGUID) or 1);
end
else
return UnitGetIncomingHeals(aUnit, aCasterUnit);
return 0;
end
end
......
......@@ -15,6 +15,7 @@ Known issues:
Bugfixes:
-- Disable use of UnitGetIncomingHeals API until Blizzard hotfix
Improvements:
......
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