From b900520d5f2ce813a2b14c870e52e126984f2e51 Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Fri, 17 Jan 2025 17:01:24 +0100 Subject: [PATCH] from retail --- WeakAuras/BuffTrigger2.lua | 4 ++-- WeakAuras/Prototypes.lua | 4 ++-- WeakAurasOptions/OptionsFrames/Update.lua | 10 ++++------ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/WeakAuras/BuffTrigger2.lua b/WeakAuras/BuffTrigger2.lua index c29afe7..7908dac 100644 --- a/WeakAuras/BuffTrigger2.lua +++ b/WeakAuras/BuffTrigger2.lua @@ -2553,9 +2553,9 @@ function BuffTrigger.SetToolTip(trigger, state) return false end if state.filter == "HELPFUL" then - GameTooltip:SetUnitBuff(state.unit, state.index) + GameTooltip:SetUnitBuff(state.unit, state.index, state.filter) elseif state.filter == "HARMFUL" then - GameTooltip:SetUnitDebuff(state.unit, state.index) + GameTooltip:SetUnitDebuff(state.unit, state.index, state.filter) end return true end diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 64e4e3d..31b335f 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -3817,7 +3817,7 @@ Private.event_prototypes = { nameFunc = function(trigger) local item = GetInventoryItemID("player", trigger.itemSlot or 0); if (item) then - return GetItemInfo(item); + return (GetItemInfo(item)) end end, stacksFunc = function(trigger) @@ -6756,7 +6756,7 @@ Private.event_prototypes = { } }, nameFunc = function(trigger) - return GetSpellInfo(trigger.spellId or 0) + return (GetSpellInfo(trigger.spellId or 0)) end, iconFunc = function(trigger) local _, _, icon = GetSpellInfo(trigger.spellId or 0); diff --git a/WeakAurasOptions/OptionsFrames/Update.lua b/WeakAurasOptions/OptionsFrames/Update.lua index 840c047..e47fba1 100644 --- a/WeakAurasOptions/OptionsFrames/Update.lua +++ b/WeakAurasOptions/OptionsFrames/Update.lua @@ -300,13 +300,11 @@ local function BuildUidMap(data, children, type) -- index, total, parentIsDynamicGroup: helpers that transport data between phase 1 and 2 }, - type = type -- Either old or new, only used for error checking - -- root: uid of the root - -- totalCount: count of members - -- idToUid maps from id to uid + type = type, -- Either old or new, only used for error checking + root = data.uid, -- root: uid of the root + totalCount = #children + 1, -- totalCount: count of members + idToUid = {} -- idToUid maps from id to uid } - uidMap.root = data.uid - uidMap.totalCount = #children + 1 -- Build helper map from id to uid local idToUid = {}