From 9814ac4024d4dd9b1fcaf83cfca460cb140260e0 Mon Sep 17 00:00:00 2001 From: d87 Date: Tue, 12 Sep 2023 15:32:57 +0700 Subject: [PATCH] Disabled Single Target option fix --- NugRunning.lua | 6 +++++- helpers.lua | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NugRunning.lua b/NugRunning.lua index bd5224a..808aa14 100644 --- a/NugRunning.lua +++ b/NugRunning.lua @@ -412,7 +412,11 @@ function NugRunning.COMBAT_LOG_EVENT_UNFILTERED( self, event ) if not affiliationStatus and opts.affiliation then affiliationStatus = (bit_band(srcFlags, COMBATLOG_OBJECT_AFFILIATION_MASK) <= opts.affiliation) end - if opts.target and dstGUID ~= UnitGUID(opts.target) then return end + if opts.singleTarget then + if dstGUID ~= UnitGUID("target") then return end + else + if opts.target and dstGUID ~= UnitGUID(opts.target) then return end + end if affiliationStatus then if eventType == "SPELL_AURA_REFRESH" then self:RefreshTimer(srcGUID, dstGUID, dstName, dstFlags, spellID, spellName, opts, auraType, nil, amount) diff --git a/helpers.lua b/helpers.lua index 85e2ec1..7ce0acb 100644 --- a/helpers.lua +++ b/helpers.lua @@ -115,7 +115,6 @@ helpers.Spell = function(id, opts) end return end - if opts.singleTarget then opts.target = "target" end if opts.affiliation == "raid" then opts.affiliation = AFFILIATION_PARTY_OR_RAID end if opts.affiliation == "any" then opts.affiliation = AFFILIATION_OUTSIDER end if type(id) == "table" then