51662, -- Hunger For Blood |
53601, -- Sacred Shield |
53563, -- Beacon of Light |
1454, -- Life Tap |
1490, -- Curse of the elements |
}) do |
whitelist[GetSpellInfo(v)] = true |
end |
|
local myunits = { |
player = true, |
vehicle = true, |
pet = true |
} |
|
function AuraBarFilter(name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable) |
if unitCaster == "player" |
and not (duration == 0 and expirationTime == 0) |
and duration <= 30 |
or whitelist[name] then |
if not myunits[unitCaster] then return end |
if whitelist[name] |
or not (duration == 0 and expirationTime == 0) |
and duration <= 30 then |
return true |
end |
end |