Got a problem as well with Loaded Dice ("Gezinkte Würfel"). I wrote an Addon months ago to track the RTB buffs and do a bit more. Jolly Roger was always "on" now, because I compared the player's active buffs to the RTB buffs by name and Jolly Roger has the same name in German as Loaded Dice. I switched to comparison by spell id and it seemed to be fixed, but there is still an oddity going on. The buff tracker works most of the time, but when I roll all six buffs, only five are shown active (Jolly Roger is missing in the display).
Working code (shortened):
Code:
local SharkInfestedWaters = "193357"
local TrueBearing = "193359"
local JollyRoger = "199603"
local Broadsides = "193356"
local BuriedTreasure = "199600"
local GrandMelee = "193358"
local buffs = {
[SharkInfestedWaters] = {},
[TrueBearing] = {},
[JollyRoger] = {},
[Broadsides] = {},
[BuriedTreasure] = {},
[GrandMelee] = {}
}
-- Check if RTB was used etc., then:
for buff in pairs(buffs) do -- walk through the six possible buffs and check if they're up
local isActive = select(11, UnitBuff("player", GetSpellInfo(buff))) -- If the buff is up, isActive will contain the spell id
if(tostring(isActive) == tostring(buff)) then
-- buff is up
end
end