Skip to content

Commit

Permalink
Update BigDebuffs.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
muleyo authored Sep 9, 2023
1 parent 3ae4c53 commit bcad4c5
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then
Disease = function() return IsUsableSpell(GetSpellInfo(374251)) end,
Curse = function() return IsUsableSpell(GetSpellInfo(374251)) end,
},
[1473] = { -- Augmentation Evoker
Poison = true,
Disease = function() return IsUsableSpell(GetSpellInfo(374251)) end,
Curse = function() return IsUsableSpell(GetSpellInfo(374251)) end,
},
[577] = {
Magic = function() return GetSpellInfo(205604) end, -- Reverse Magic
},
Expand Down Expand Up @@ -1829,20 +1834,26 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then
local function addDebuffs(aura)
-- aura struct https://wowpedia.fandom.com/wiki/Struct_UnitAuraInfo
if (not aura) then return end
local reaction = aura.sourceUnit and UnitReaction("player", aura.sourceUnit) or 0
local friendlySmokeBomb = aura.spellId == 212183 and reaction > 4
local isDispellable = self:IsDispellable(unitId, aura.dispelName);
local size = self:GetDebuffSize(aura.spellId, isDispellable)
-- make sure certain debuffs aren't dispalyed as boss auras
if size then
aura.isBossAura = false
end
if size and not friendlySmokeBomb then
tinsert(debuffs, { aura, size, self:GetDebuffPriority(aura.spellId) })
elseif self.db.profile.raidFrames.redirectBliz then
if not frame.optionTable.displayOnlyDispellableDebuffs or isDispellable then
tinsert(debuffs, { aura, self.db.profile.raidFrames.default, 0 })
if (not BigDebuffsUnwantedSpell(aura.spellId)) then
if aura.spellId ~= unwantedSpellID then
local reaction = aura.sourceUnit and UnitReaction("player", aura.sourceUnit) or 0
local friendlySmokeBomb = aura.spellId == 212183 and reaction > 4
local isDispellable = self:IsDispellable(unitId, aura.dispelName);
local size = self:GetDebuffSize(aura.spellId, isDispellable)
-- make sure certain debuffs aren't dispalyed as boss auras
if size then
aura.isBossAura = false
end
if size and not friendlySmokeBomb then
tinsert(debuffs, { aura, size, self:GetDebuffPriority(aura.spellId) })
elseif self.db.profile.raidFrames.redirectBliz then
if not frame.optionTable.displayOnlyDispellableDebuffs or isDispellable then
tinsert(debuffs, { aura, self.db.profile.raidFrames.default, 0 })
end
end
end
else
CompactUnitFrame_HideAllDebuffs(frame)
end
end

Expand Down

0 comments on commit bcad4c5

Please sign in to comment.