Skip to content

Commit

Permalink
Code cleanup for Bleeds
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Aug 26, 2024
1 parent c8f6cf8 commit 17ae7f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/AuraListeners.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ if EnhancedRaidFrames.isWoWClassicEra then
EnhancedRaidFrames.UnitAuraWrapper = LibClassicDurations.UnitAuraWrapper -- Wrapper function to use in place of UnitAura
end

-- Get our list of bleeds from LibDispel
local bleedList = LibDispel:GetBleedList()

-------------------------------------------------------------------------
-------------------------------------------------------------------------

Expand Down Expand Up @@ -188,6 +185,9 @@ end
function EnhancedRaidFrames:addToAuraTable(parentFrame, auraData)
-- Inject bleed debuff types into our auraData, courtesy of LibDispel
if not self.isWoWClassicEra and not self.isWoWClassic then
-- Get our list of bleeds from LibDispel
local bleedList = LibDispel:GetBleedList()

-- Check if the aura is harmful and if it's a known bleed (as defined by LibDispel)
if auraData.isHarmful and bleedList[auraData.spellId] then
auraData.dispelName = "bleed"
Expand Down

0 comments on commit 17ae7f3

Please sign in to comment.