Hello
Wondering why this works for the sunder on my target, but not for my own buff when I have a bloodsurge proc ?
I tried with battle shout and nothing works, as soon as I use the filter, no bufs are displayed.
Any help?
Code:
local filter = {
[GetSpellInfo(47467)] = true, -- sunder armor(highest rank)
[GetSpellInfo(46916)] = true, -- slam! (bloodsurge)
}
local function customFilter(icons, unit, icon, name, rank, texture, count, dtype, duration, expiration, caster)
if(filter[name]) then
return true
end
end
Code:
-- Buffs on player
if(unit == 'player') then
self.Buffs = CreateFrame("Frame", nil, self)
self.Buffs:SetPoint("RIGHT", self, "LEFT")
self.Buffs:SetHeight(30)
self.Buffs:SetWidth(30)
self.Buffs.initialAnchor = "RIGHT"
self.Buffs.size = 30
self.Buffs["growth-x"] = "LEFT"
self.Buffs.num = 1
end
-- Debuffs on target
if(unit == 'target') then
self.Debuffs = CreateFrame("Frame", nil, self)
self.Debuffs:SetPoint("TOP", self, "BOTTOM")
self.Debuffs:SetHeight(30)
self.Debuffs:SetWidth(width)
self.Debuffs.initialAnchor = "TOPLEFT"
self.Debuffs.size = 30
--self.Debuffs.showDebuffType = true
--self.Debuffs.num = math.floor(width / self.Debuffs.size + .5)
self.Debuffs["growth-x"] = "RIGHT"
self.Debuffs["growth-y"] = "DOWN"
self.PostCreateAuraIcon = auraIcon
end
self.CustomAuraFilter = customFilter