1. Dispel That Buff! - an alternative to Dispel Border

    Dispel That Buff!

    Did you always want to be like a mage and see dispellable buffs on your targets?
    Worry no more dear apprentice!

    "Dispel That Buff!" highlights buffs that you can dispel. Like this:



    The highlight only appears around the buff if your target is an enemy.

    If you select your target before a duel starts, the addon will think your target is a "friend". You can fix this by targeting your opponent again after the duel has started, when your target is market as an "enemy".





    (The addon should support all versions of WoW as it is basically a UI script)



    //This addon was born due to "DispelBorder"'s incompatibility with 3.3.5.//
    Edited: April 25, 2019

  2. try to delete all from .lua file and paste this code
    Code:
    local _,class = UnitClass("player")
    if class == "SHAMAN" or class == "PRIEST" or class == "WARRIOR" then
    	local o = UnitBuff
    	UnitBuff = function(unit,...)
    		if (unit == "target" or unit == "focus") and UnitIsEnemy("player",unit) then  
    			local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = o(unit,...)
    			return name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, debuffType == "Magic", shouldConsolidate, spellId
    		else
    			return o(unit,...)
    		end
    	end
    	hooksecurefunc("TargetFrame_CheckFaction",TargetFrame_UpdateAuras)
    	hooksecurefunc("FocusFrame_CheckFaction",FocusFrame_UpdateAuras)
    end
    Hey.
    Thanks for the recommendation. If I'm not mistaken, this fixes the duel issue, right?

  3. Hey, here is fix, because it didnt work with hunter :P : I was wondering aswell if there is a way to prioritize buffs, so the dispelable nad non dispelable buffs are somehow grouped. Not sure if its possible
    Code:
    local _,class = UnitClass("player")
    if class == "SHAMAN" or class == "PRIEST" or class == "WARRIOR" or class == "HUNTER"  then
    	local o = UnitBuff
    	UnitBuff = function(unit,...)
    		if (unit == "target" or unit == "focus") and UnitIsEnemy("player",unit) then  
    			local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = o(unit,...)
    			return name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, debuffType == "Magic", shouldConsolidate, spellId
    		else
    			return o(unit,...)
    		end
    	end
    	hooksecurefunc("TargetFrame_CheckFaction",TargetFrame_UpdateAuras)
    	hooksecurefunc("FocusFrame_CheckFaction",FocusFrame_UpdateAuras)
    end

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •