From 00340e146d637a0b69529348377dd5da9f2ed482 Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Sun, 18 Aug 2024 15:58:55 +0200 Subject: [PATCH] Fix: UnitBuff error --- PetCare.lua | 2 +- RelNotes.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PetCare.lua b/PetCare.lua index e1fd0a7..17dc02a 100644 --- a/PetCare.lua +++ b/PetCare.lua @@ -68,7 +68,7 @@ local function HasBuff(unit,id,filter) filter = filter or "CANCELABLE" local index,res=1,true while res do - res=select(10,UnitBuff(unit,index,filter)) + res=select(10,C_UnitAuras.GetBuffDataByIndex(unit,index,filter)) if res and res == id then return index end index=index+1 end diff --git a/RelNotes.lua b/RelNotes.lua index 54c14c3..a2ebeab 100644 --- a/RelNotes.lua +++ b/RelNotes.lua @@ -14,8 +14,9 @@ can play a sound if you enter a non PVP instance with Growl active alerts can be disabled in PVP ]]) self:HF_Paragraph("Release Notes") -self:RelNotes(6,10,3,[[ +self:RelNotes(6,10,4,[[ Fix: was not loading +Fix: UnitBuff error ]]) self:RelNotes(6,10,2,[[ Library update