Skip to content

Commit

Permalink
Disabled Single Target option fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Sep 12, 2023
1 parent bef9f26 commit 9814ac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion NugRunning.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9814ac4

Please sign in to comment.