Commit 6bafc393 authored by Ivaria's avatar Ivaria
Browse files

Migrate to blessed version of LibHealComm-4.0

parent b7f3d05d
......@@ -16,7 +16,7 @@ VUHDO_LibBase64 = LibStub:GetLibrary("LibBase64-1.0");
VUHDO_LibCustomGlow = LibStub("LibCustomGlow-1.0");
VUHDO_LibClassicHealComm = LibStub("LibClassicHealComm-1.0");
VUHDO_LibHealComm = LibStub("LibHealComm-4.0");
VUHDO_LibClassicDurations = LibStub("LibClassicDurations");
......
......@@ -1568,7 +1568,7 @@ function VUHDO_OnLoad(anInstance)
VUHDO_ALL_EVENTS = nil;
if VUHDO_LibClassicHealComm then
if VUHDO_LibHealComm then
local function HealComm_HealUpdated(aEvent, aCasterGUID, aSpellID, aHealType, aEndTime, ...)
local tTargets = { n = select("#", ...), ... };
......@@ -1584,10 +1584,10 @@ function VUHDO_OnLoad(anInstance)
end
anInstance.HealComm_HealUpdated = HealComm_HealUpdated;
VUHDO_LibClassicHealComm.RegisterCallback(anInstance, "HealComm_HealStarted", HealComm_HealUpdated);
VUHDO_LibClassicHealComm.RegisterCallback(anInstance, "HealComm_HealStopped", HealComm_HealUpdated);
VUHDO_LibClassicHealComm.RegisterCallback(anInstance, "HealComm_HealDelayed", HealComm_HealUpdated);
VUHDO_LibClassicHealComm.RegisterCallback(anInstance, "HealComm_HealUpdated", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "HealComm_HealStarted", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "HealComm_HealStopped", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "HealComm_HealDelayed", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "HealComm_HealUpdated", HealComm_HealUpdated);
local function HealComm_HealModified(aEvent, aTargetGUID)
local tTarget = VUHDO_RAID_GUIDS[aTargetGUID];
......@@ -1599,8 +1599,8 @@ function VUHDO_OnLoad(anInstance)
end
anInstance.HealComm_HealModified = HealComm_HealModified;
VUHDO_LibClassicHealComm.RegisterCallback(anInstance, "HealComm_ModifierChanged", HealComm_HealModified);
VUHDO_LibClassicHealComm.RegisterCallback(anInstance, "HealComm_GUIDDisappeared", HealComm_HealModified);
VUHDO_LibHealComm.RegisterCallback(anInstance, "HealComm_ModifierChanged", HealComm_HealModified);
VUHDO_LibHealComm.RegisterCallback(anInstance, "HealComm_GUIDDisappeared", HealComm_HealModified);
end
SLASH_VUHDO1 = "/vuhdo";
......
......@@ -1111,15 +1111,15 @@ function VUHDO_unitGetIncomingHeals(aUnit, aCasterUnit)
end
if not UnitGetIncomingHeals then
if VUHDO_LibClassicHealComm then
if VUHDO_LibHealComm then
local tTargetGUID = UnitGUID(aUnit);
if aCasterUnit then
local tCasterGUID = UnitGUID(aCasterUnit);
return (VUHDO_LibClassicHealComm:GetHealAmount(tTargetGUID, VUHDO_LibClassicHealComm.ALL_HEALS, nil, tCasterGUID) or 0) * (VUHDO_LibClassicHealComm:GetHealModifier(tTargetGUID) or 1);
return (VUHDO_LibHealComm:GetHealAmount(tTargetGUID, VUHDO_LibHealComm.ALL_HEALS, nil, tCasterGUID) or 0) * (VUHDO_LibHealComm:GetHealModifier(tTargetGUID) or 1);
else
return (VUHDO_LibClassicHealComm:GetHealAmount(tTargetGUID, VUHDO_LibClassicHealComm.ALL_HEALS) or 0) * (VUHDO_LibClassicHealComm:GetHealModifier(tTargetGUID) or 1);
return (VUHDO_LibHealComm:GetHealAmount(tTargetGUID, VUHDO_LibHealComm.ALL_HEALS) or 0) * (VUHDO_LibHealComm:GetHealModifier(tTargetGUID) or 1);
end
else
return 0;
......
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