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