for people having issues with the battleground targets add-on the below fixed for me.
open battlegroundtargets.lua with a text editor.
replace:
local id, name, _, icon, _, role = GetSpecializationInfoForClassID(classID, i)
with:
local id, name, _, icon, role =...