View Single Post
11-14-18, 03:39 PM   #6
Reser
A Kobold Labourer
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 1
A bit of a necro but the issue with the code letting non-whitelisted debuffs through seems to be that there's a lot of debuffs going around that don't have a caster tied to them. Seems to be world buffs e.g. in BGs, some azerite traits, and debuffs by people whose nameplates you are not in the range of. This makes

Code:
local function newShouldShowBuff(_,name,caster)
    return name and (whitelist[name] == caster or whitelist[name] == "all")
end
return true for debuffs that have a name but lack a caster and aren't found in the whitelist (caster == nil == whitelist[name]). Easy enough fix for this is to check the caster to make sure that non-whitelisted debuffs wont go through.

Code:
local function newShouldShowBuff(_,name,caster)
    return name and caster and (whitelist[name] == caster or whitelist[name] == "all")
end
  Reply With Quote