From e31a9655cb92445464c52a69f8c8761e8da85b4e Mon Sep 17 00:00:00 2001 From: d87 Date: Mon, 13 Sep 2021 17:14:47 +0700 Subject: [PATCH] Removed LibHealComm for 2.5.2 --- .pkgmeta | 1 - Aptechka-BCC.toc | 4 +--- Aptechka.lua | 36 +----------------------------------- 3 files changed, 2 insertions(+), 39 deletions(-) diff --git a/.pkgmeta b/.pkgmeta index acb9499..f982595 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -25,5 +25,4 @@ externals: Libs/LibDataBroker-1.1: https://github.com/tekkub/libdatabroker-1-1.git Libs/LibDBIcon-1.0: https://repos.wowace.com/wow/libdbicon-1-0/trunk/LibDBIcon-1.0 Libs/LibTranslit-1.0: https://github.com/Vardex/LibTranslit.git - Libs/LibHealComm-4.0: https://github.com/Azilroka/LibHealComm-4.0.git Libs/LibClassicDurations: https://repos.curseforge.com/wow/libclassicdurations diff --git a/Aptechka-BCC.toc b/Aptechka-BCC.toc index 2bed8dc..ab8527f 100644 --- a/Aptechka-BCC.toc +++ b/Aptechka-BCC.toc @@ -1,4 +1,4 @@ -## Interface: 20501 +## Interface: 20502 ## Title: Aptechka ## Notes: Raid Frames ## Version: @project-version@ @@ -26,8 +26,6 @@ Libs\LibAuraTypes\LibAuraTypes.lua Libs\LibTargetedCasts\LibTargetedCasts.lua Libs\LibTargeted\LibTargeted.lua -Libs\LibHealComm-4.0\LibHealComm-4.0.xml - helpers.lua config.lua config.tbc.lua diff --git a/Aptechka.lua b/Aptechka.lua index 5d9277f..c9d3a7e 100644 --- a/Aptechka.lua +++ b/Aptechka.lua @@ -37,7 +37,6 @@ if apiLevel <= 2 then UnitHasVehicleUI = dummyFalse UnitInVehicle = dummyFalse UnitUsingVehicle = dummyFalse - UnitGetIncomingHeals = dummy0 UnitGetTotalAbsorbs = dummy0 UnitGetTotalHealAbsorbs = dummy0 UnitPhaseReason = dummyFalse @@ -359,22 +358,7 @@ function Aptechka.PLAYER_LOGIN(self,event,arg1) end if config.enableIncomingHeals then - if apiLevel <= 2 then - HealComm = LibStub:GetLibrary("LibHealComm-4.0",true); - local incomingHealIgnoreHots = true - if HealComm then - if incomingHealIgnoreHots then - HealComm.AptechkaHealType = HealComm.CASTED_HEALS - else - HealComm.AptechkaHealType = HealComm.ALL_HEALS - HealComm.RegisterCallback(self, "HealComm_HealUpdated", "HealUpdated"); -- hots - end - HealComm.RegisterCallback(self, "HealComm_HealStarted", "HealUpdated"); - HealComm.RegisterCallback(self, "HealComm_HealStopped", "HealUpdated"); - end - else - self:RegisterEvent("UNIT_HEAL_PREDICTION") - end + self:RegisterEvent("UNIT_HEAL_PREDICTION") end if LibClassicDurations then @@ -1013,24 +997,6 @@ function Aptechka.UNIT_HEAL_PREDICTION(self,event,unit) end if apiLevel <= 2 then - function Aptechka:HealUpdated(event, casterGUID, spellID, healType, endTime, ...) - for i=1,select('#', ...) do - local targetGUID = select(i, ...) - local unit = guidMap[targetGUID] - if unit then - Aptechka:UNIT_HEAL_PREDICTION(nil, unit, targetGUID) - end - end - end - - local incomingHealTimeframe = 3 - - GetIncomingHealsCustom = function (unit, excludePlayer) - local guid = UnitGUID(unit) - local heal = HealComm:GetHealAmount(guid, HealComm.AptechkaHealType, GetTime()+incomingHealTimeframe) - return heal or 0 - end - function Aptechka.UNIT_HEAL_PREDICTION(self,event,unit) self:UNIT_HEALTH(event, unit)