From f1c1bf71bbe100b70e06ff33beffea6df5a104c8 Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Sun, 16 Feb 2025 13:57:09 +0100 Subject: [PATCH] small fixes `UnitExistsFixed(unit) == 1 and true or false` was in bunnys code, i was very confused with this, it shut have never returned correctly, i changed this and reverted this back and forth, now this will work and return correct values. --- WeakAuras/BuffTrigger2.lua | 4 ++-- WeakAuras/LibGroupTalentsWrapper.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/WeakAuras/BuffTrigger2.lua b/WeakAuras/BuffTrigger2.lua index 93de37e..8a49500 100644 --- a/WeakAuras/BuffTrigger2.lua +++ b/WeakAuras/BuffTrigger2.lua @@ -1661,7 +1661,7 @@ local function ScanRaidMarkScanFunc(matchDataChanged) end local function ScanGroupUnit(time, matchDataChanged, unitType, unit) - local unitExists = UnitExistsFixed(unit) == 1 and true or false + local unitExists = UnitExistsFixed(unit) if existingUnits[unit] ~= unitExists then existingUnits[unit] = unitExists @@ -1787,7 +1787,7 @@ end local function RecheckActive(triggerInfo, unit, unitsToRemoveScan) local isSelf, role, inParty, class - local unitExists = UnitExistsFixed(unit) == 1 and true or false + local unitExists = UnitExistsFixed(unit) if unitExists and TriggerInfoApplies(triggerInfo, unit) then if (not activeGroupScanFuncs[unit] or not activeGroupScanFuncs[unit][triggerInfo]) then triggerInfo.maxUnitCount = triggerInfo.maxUnitCount + 1 diff --git a/WeakAuras/LibGroupTalentsWrapper.lua b/WeakAuras/LibGroupTalentsWrapper.lua index 400d1be..09ac918 100644 --- a/WeakAuras/LibGroupTalentsWrapper.lua +++ b/WeakAuras/LibGroupTalentsWrapper.lua @@ -93,7 +93,6 @@ if LibGroupTalents then end LibGroupTalents.RegisterCallback(Private.LibGroupTalentsWrapper, "LibGroupTalents_Update", "LibGroupTalentsCallback") - LibGroupTalents.RegisterCallback(Private.LibGroupTalentsWrapper, "LibGroupTalents_RoleChange", "LibGroupTalentsCallback") LibGroupTalents.RegisterCallback(Private.LibGroupTalentsWrapper, "LibGroupTalents_GlyphUpdate", "LibGroupTalentsCallback") function Private.LibGroupTalentsWrapper.Register(f)