Skip to content

Commit

Permalink
Fix some seticon nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed May 2, 2024
1 parent 58331bb commit be950a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions DBM-Raids-WoD/HellfireCitadel/Mannoroth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,8 @@ function mod:SPELL_AURA_APPLIED(args)
end
elseif spellId == 181099 then
timerMarkofDoomCD:Start(args.sourceGUID)
local name = args.destName
if not tContains(doomTargets, name) then
doomTargets[#doomTargets+1] = name
if not tContains(doomTargets, args.destName) then
doomTargets[#doomTargets+1] = args.destName
end
local count = #doomTargets
self.vb.DoomTargetCount = self.vb.DoomTargetCount + 1
Expand All @@ -523,7 +522,7 @@ function mod:SPELL_AURA_APPLIED(args)
yellMarkOfDoom:Yell(count, count, count)
end
if self.Options.SetIconOnDoom2 then
self:SetIcon(name, count)
self:SetIcon(args.destName, count)
end
updateRangeFrame(self)
elseif spellId == 181191 and self:CheckInterruptFilter(args.sourceGUID, true) and self:IsMelee() and self:AntiSpam(2, 5) then--No sense in duplicating code, just use CheckInterruptFilter with arg to skip the filter setting check
Expand Down
4 changes: 2 additions & 2 deletions DBM-Raids-WoD/Highmaul/Margok.lua
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,9 @@ function mod:SPELL_AURA_APPLIED(args)
end
if self.Options.SetIconOnBrandedDebuff then
if spellId == 164006 or (self:IsMythic() and spellId == 164004) then--On mythic, displacement/replication in phase 1. Using dipslacemnet spellid, on two targets.
self:SetSortedIcon("roster", 1, name, 1, 2)
self:SetSortedIcon("roster", 1, args.destName, 1, 2)
else
self:SetIcon(name, 1)
self:SetIcon(args.destName, 1)
end
end
updateRangeFrame(self)--Update it here cause we don't need it before stacks get to relevant levels.
Expand Down

0 comments on commit be950a6

Please sign in to comment.