I am being driven insane by this double jeopardy problem, I have had to change it a million times because of addon interference and non english clients.
I think I finally found a fix but it freezes up on judgment after I get 5 stacks of censure on the target.
PHP Code:
local cStack = select(4, UnitDebuffID("focus", 31803))
local cTime = select(7, UnitDebuffID("focus", 31803))
local censure = UnitDebuffID("focus", 31803)
if GetShapeshiftForm() ~= 0 then hasSeal = true else hasSeal = false end
if hasSeal then
if UnitPower("player", 9) < 5 then
if UnitExists("focus") then
if censure == nil or cStack < 5 or ((cTime - GetTime()) <= 7) then
CastSpellByName(GetSpellInfo(20271), "focus")
end
elseif UnitExists("focus") == nil or (cStack == 5 and ((cTime - GetTime()) > 7)) then
CastSpellByName(GetSpellInfo(20271), "target")
end
end
end