Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-31-23, 11:10 PM   #1
fearkite
A Defias Bandit
Join Date: Aug 2009
Posts: 3
Simple addon to disable default blizzard personal bar debuffs

Hey all!

I've been struggling with making this addon. I'm a complete noob at this, not even sure how to approach it, honestly.

Here is my attempt thus far to disable default blizzard personal bar debuffs:

Code:
local f=CreateFrame("frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
hooksecurefunc("CompactUnitFrame_UpdateAuras", function(frame)
    if frame.optionTable.colorNameBySelection then
        if UnitGUID(frame.unit) == UnitGUID("player") then
            frame.BuffFrame:Hide()
        else
            frame.BuffFrame:Show()
        end
    end
end)
Any help would be very much appreciated!

Thanks heaps <3
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Simple addon to disable default blizzard personal bar debuffs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off