@@ -8,6 +8,7 @@ local EnhancedRaidFrames = _G.EnhancedRaidFrames
88
99-- Import libraries
1010local LibSharedMedia = LibStub :GetLibrary (" LibSharedMedia-3.0" )
11+ local LibDispel = LibStub (" LibDispel-1.0" )
1112
1213---- ---------------------------------------------------------------------
1314---- ---------------------------------------------------------------------
@@ -271,10 +272,10 @@ function EnhancedRaidFrames:FindActiveAndTrackedAura(indicatorFrame)
271272 if aura .name == auraIdentifier
272273 -- Check if the aura is a spellId and the spellId matches our auraString
273274 or (tonumber (auraIdentifier ) and aura .spellId == tonumber (auraIdentifier ))
274- -- Check if the aura is a debuff, if it matches the "RAID" filter , and the auraString matches the " dispel" wildcard
275- or (aura .isHarmful and aura . isRaid and " dispel" == auraIdentifier )
275+ -- Check if the aura is a debuff, if the auraString matches the "dispel" wildcard , and if the player can dispel this type
276+ or (aura .isHarmful and " dispel" == auraIdentifier and LibDispel : GetMyDispelTypes ()[ aura . dispelName ] )
276277 -- Check if the aura is a debuff and if the auraString matches one of the debuff type wildcards
277- or (aura .isHarmful and aura .dispelName == auraIdentifier ) then
278+ or (aura .isHarmful and aura .dispelName : lower () == auraIdentifier ) then
278279
279280 -- Check if we should only show our own auras
280281 if not self .db .profile [" indicator-" .. i ].mineOnly
@@ -501,19 +502,19 @@ function EnhancedRaidFrames:UpdateIndicatorColor(indicatorFrame, remainingTime)
501502
502503 -- Set the color by debuff type
503504 if self .db .profile [" indicator-" .. i ].colorIndicatorByDebuff and thisAura .isHarmful and thisAura .dispelName then
504- if thisAura .dispelName == " poison " then
505+ if thisAura .dispelName == " Poison " then
505506 indicatorFrame .Icon :SetColorTexture (self .GREEN_COLOR :GetRGB ())
506507 return
507- elseif thisAura .dispelName == " curse " then
508+ elseif thisAura .dispelName == " Curse " then
508509 indicatorFrame .Icon :SetColorTexture (self .PURPLE_COLOR :GetRGB ())
509510 return
510- elseif thisAura .dispelName == " disease " then
511+ elseif thisAura .dispelName == " Disease " then
511512 indicatorFrame .Icon :SetColorTexture (self .BROWN_COLOR :GetRGB ())
512513 return
513- elseif thisAura .dispelName == " magic " then
514+ elseif thisAura .dispelName == " Magic " then
514515 indicatorFrame .Icon :SetColorTexture (self .BLUE_COLOR :GetRGB ())
515516 return
516- elseif thisAura .dispelName == " bleed " then
517+ elseif thisAura .dispelName == " Bleed " then
517518 indicatorFrame .Icon :SetColorTexture (self .PINK_COLOR :GetRGB ())
518519 return
519520 end
@@ -548,19 +549,19 @@ function EnhancedRaidFrames:UpdateCountdownTextColor(indicatorFrame, remainingTi
548549
549550 -- Set the color by debuff type
550551 if self .db .profile [" indicator-" .. i ].colorTextByDebuff and thisAura .isHarmful and thisAura .dispelName then
551- if thisAura .dispelName == " poison " then
552+ if thisAura .dispelName == " Poison " then
552553 indicatorFrame .Countdown :SetTextColor (self .GREEN_COLOR :GetRGB ())
553554 return
554- elseif thisAura .dispelName == " curse " then
555+ elseif thisAura .dispelName == " Curse " then
555556 indicatorFrame .Countdown :SetTextColor (self .PURPLE_COLOR :GetRGB ())
556557 return
557- elseif thisAura .dispelName == " disease " then
558+ elseif thisAura .dispelName == " Disease " then
558559 indicatorFrame .Countdown :SetTextColor (self .BROWN_COLOR :GetRGB ())
559560 return
560- elseif thisAura .dispelName == " magic " then
561+ elseif thisAura .dispelName == " Magic " then
561562 indicatorFrame .Countdown :SetTextColor (self .BLUE_COLOR :GetRGB ())
562563 return
563- elseif thisAura .dispelName == " bleed " then
564+ elseif thisAura .dispelName == " Bleed " then
564565 indicatorFrame .Countdown :SetTextColor (self .PINK_COLOR :GetRGB ())
565566 return
566567 end
@@ -618,12 +619,8 @@ function EnhancedRaidFrames:Tooltip_OnEnter(indicatorFrame, parentFrame)
618619 GameTooltip :SetUnitDebuffByAuraInstanceID (parentFrame .unit , thisAura .auraInstanceID )
619620 elseif thisAura .auraIndex then
620621 -- The legacy way to set the tooltip for an aura
621- if thisAura .isRaid then
622- -- This is a raid debuff (aka dispellable), it uses a different UnitAura filter
623- GameTooltip :SetUnitAura (parentFrame .unit , thisAura .auraIndex , " RAID|HARMFUL" )
624- else
625- GameTooltip :SetUnitAura (parentFrame .unit , thisAura .auraIndex , " HARMFUL" )
626- end
622+ GameTooltip :SetUnitAura (parentFrame .unit , thisAura .auraIndex , " HARMFUL" )
623+
627624 end
628625 end
629626 else
0 commit comments