From e028033cdb6a58d9e3995fa5a7e9e379f60a6fb9 Mon Sep 17 00:00:00 2001 From: JerichoR Date: Tue, 24 Sep 2024 23:57:43 +0200 Subject: [PATCH] Activate only for retail and Priest --- Tukui/Libs/oUF_Atonement/oUF_Atonement.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tukui/Libs/oUF_Atonement/oUF_Atonement.lua b/Tukui/Libs/oUF_Atonement/oUF_Atonement.lua index 425193a5..aaaf99ec 100644 --- a/Tukui/Libs/oUF_Atonement/oUF_Atonement.lua +++ b/Tukui/Libs/oUF_Atonement/oUF_Atonement.lua @@ -9,6 +9,7 @@ local GetAuraDataByIndex = _G.C_UnitAuras.GetAuraDataByIndex local GetAuraDataByAuraInstanceID = _G.C_UnitAuras.GetAuraDataByAuraInstanceID local NewTicker = _G.C_Timer.NewTicker local GetTime = _G.GetTime +local playerClass = _G.UnitClassBase("player") local AtonementID = 194384 local AtonementIDPvP = 214206 @@ -113,8 +114,8 @@ end local function Enable(self) local element = self.Atonement - if element then - self:RegisterEvent("UNIT_AURA", Update) + -- need for Atonement buff to transfer healing was only introduced after MoP + if element and oUF.isRetail and playerClass == "PRIEST" then self:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED", CheckSpec, true) self:RegisterEvent("PLAYER_ENTERING_WORLD", CheckSpec, true)