Does this look correct?
PHP Code:
local hasSeal = false
local judgedTarget = false
-- Seal Check
if GetShapeshiftForm() ~= 0 then hasSeal = true else hasSeal = false end
-- double jeporady
if hasSeal then
if judgedTarget == false then
if UnitExists("target") and UnitPower("player", 9) < 5 then
CastSpellByName(GetSpellInfo(20271), "target")
judgedTarget = true
end
end
else
if judgedTarget == true then
if UnitExists("focus") and UnitPower("player", 9) < 5 then
CastSpellByName(GetSpellInfo(20271), "focus")
judgedTarget = false
end
end
end
For some reason it won't judge the focus,
edit: tried moving judgedTarget above the spellcast, still won't work =/, Am I using bool's wrong?