I tested your code Sheuron for Arena Poly and it doesn't seem to do the auto poly function.
Code:
if not polyfunctions then
function HaveCC(t)
local debuff = { 118, 90337, 82676, 49203, 1499, 51514, 6770, 20066, 19386, 5484, 6358, 8122, 5782, 2094,
33786, 605, 19503 }
for _,v in ipairs(debuff) do
local name,_,_,_,_,_,expiration = UnitDebuffID(t,v)
if name and expiration - GetTime() > 1 then return true end
end
end
function BeingTarget(t)
if UnitIsUnit("target",t) then return true end
for i=1, GetNumPartyMembers(), 1 do
local member = "party"..tostring(i)
if UnitIsUnit(member.."target",t) then return true end
end
end
function CanbeCC(t)
if not HaveCC(t)
and not BeingTarget(t)
and not PQR_IsOutOfSight(t)
and not UnitIsDeadOrGhost(t)
and UnitCanAttack("player",t)
and IsSpellInRange(tostring(GetSpellInfo(118)),t) == 1
then return true end
end
polyfunctions = true
end
if IsLeftControlKeyDown() and not GetCurrentKeyBoardFocus() then
if CanbeCC("mouseover") then PQR_CustomTarget = "mouseover" return true
elseif CanbeCC("focus") then PQR_CustomTarget = "focus" return true
else
local n = 1
while UnitExists("arena"..n) do
if CanbeCC("arena"..n) then PQR_CustomTarget = "arena"..n return true end
n = n + 1
end
end
end