Skip to content

Commit

Permalink
Add showing stealable buff for mages
Browse files Browse the repository at this point in the history
  • Loading branch information
scrable committed May 5, 2019
1 parent 0508442 commit 70a586c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions oUF_Farva/Farva.lua
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ end
-- buffs
local createBuffs = function(self)
local Buffs = CreateFrame("Frame", nil, self)
if cfg.showStealableBuff and UnitClass("Player") == "Mage" then
Buffs.showStealableBuffs = true
else
Buffs.showStealableBuffs = false
end
self.Buffs = Buffs
Buffs.PostCreateIcon = PostCreateIcon
Buffs.PostUpdateIcon = PostUpdateIcon
Expand Down Expand Up @@ -1272,10 +1277,6 @@ oUF:Factory(function(self)

for i = 1, 5 do
arena[i] = self:Spawn("arena"..i, "oUF_Arena"..i)
--disable the default arena prep
--leaving this enabled will cause dummy frames to be shown
--causing an error with the oUF tags
--we need it disabled for each iteration of the arena spawn
arena[i]:SetAttribute('oUF-enableArenaPrep', false)

if i == 1 then
Expand Down
2 changes: 2 additions & 0 deletions oUF_Farva/Farva_Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ cfg.texture = mediaFolder.."texture.tga"
height = 8,
}

cfg.showStealableBuff = true -- displays stealable buffs

cfg.showDebuffColorPerType = true --[[ true colors the debuff background for different spell types - green = poison, blue = magic, purple = curse, disease = yellow, red is undispellable
and false removes the background color
]]--
Expand Down

0 comments on commit 70a586c

Please sign in to comment.