local IsRated
IsRated = IsRatedBattleground()
if IsRated == true then
local AllianceSpellName = select(1, GetSpellInfo(81748))
local HordeSpellName = select(1, GetSpellInfo(81744))
-- Alliance RBG buff
if AllianceSpellName ~= nil and select(11, UnitBuff("player", AllianceSpellName)) == 81748 then
-- Horde RBG buff
elseif HordeSpellName ~= nil and select(11, UnitBuff("player", HordeSpellName)) == 81744 then
end
end