From bfbe4ca852340253e895c98dc6479ba33fd9802e Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 18 Jul 2023 16:21:02 -0300 Subject: [PATCH] Another fix for FindBuffDuration --- Libs/DF/fw.lua | 2 +- Libs/DF/mixins.lua | 2 +- core/util.lua | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 622db6fd..1a344409 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 448 +local dversion = 449 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary(major, minor) diff --git a/Libs/DF/mixins.lua b/Libs/DF/mixins.lua index 04c9c65d..6bdf6ba3 100644 --- a/Libs/DF/mixins.lua +++ b/Libs/DF/mixins.lua @@ -166,7 +166,7 @@ detailsFramework.FrameMixin = { SetBackdropBorderColor = function(self, ...) self = getFrame(self) - getFrame(self):SetBackdropBorderColor(...) + self:SetBackdropBorderColor(...) end, } diff --git a/core/util.lua b/core/util.lua index aa25e983..d9c7c0b3 100644 --- a/core/util.lua +++ b/core/util.lua @@ -36,7 +36,8 @@ local predicateFunc = function(spellIdToFind, casterName, _, name, icon, applications, dispelName, duration, expirationTime, sourceUnit, isStealable, nameplateShowPersonal, spellId, canApplyAura, isBossAura, isFromPlayerOrPlayerPet, nameplateShowAll, timeMod, applications) --print(name, texture, count, debuffType, duration, expirationTime, spellID) - if (spellIdToFind == spellId) then + --print("sourceUnit", sourceUnit) + if (spellIdToFind == spellId and UnitExists(sourceUnit)) then if (casterName == GetUnitName(sourceUnit, true)) then return true end