I have a working double jep code already but I was just wondering why this won't work.
Initalize
PHP Code:
-- Initalize vars
hasSeal = nil
judged = nil
Judgment (focus)
PHP Code:
if not UnitExists("focus") then
return false
end
if GetShapeshiftForm() ~= 0 then hasSeal = true else hasSeal = false end
if judged == nil then judged = false end
if UnitExists("focus") and hasSeal and UnitPower("player", 9) < 5 and judged == false then
judged = true
return true
end
Judgment
PHP Code:
if GetShapeshiftForm() ~= 0 then hasSeal = true else hasSeal = false end
if judged == nil then judged = false end
if hasSeal and UnitPower("player", 9) < 5 then
if UnitExists("focus") and judged == true then
judged = false
return true
elseif not UnitExists("focus") then
return true
end
end
freezes up on judgment when the rotation is going. freezes if I have a focus or no focus.
what am I missing, nothing is wrong with the code, right?