local InterruptSpells = { 331, 77472, 73920, 8004, 8936, 50464, 5185, 740, 2061, 2060, 32546, 64843, 47540, 19750, 82326, 7328, 54428, 82327, 115175, 124682, 116694, 116694, 51514, 33786, 2637, 5782, 111771, 5232, 710, 605, 9484, 32375, 20066, 118, 61305, 28272, 61721, 61780, 28271, 2641, 1513, 982 }
if PQR_SpellAvailable(57994) then
for y=1, 5 do
local aTarget = "arena"..tostring(y)
if UnitExists(aTarget)
and IsSpellInRange(GetSpellInfo(57994), aTarget) == 1
and PQR_UnitFacing("player", aTarget) then
local spellName, _, _, _, startCast, endCast, _, _, canInterrupt = UnitCastingInfo(aTarget)
for i=1, #InterruptSpells do
if GetSpellInfo(InterruptSpells[i]) == spellName and canInterrupt == false then
if select(2, Nova_CastingInfo(aTarget)) >= 20
and PQR_UnitFacing("player",aTarget,180)
then
PQR_CustomTarget = aTarget
return true
end
end
end
end
end
local fTarget = "focus"
if UnitExists(fTarget)
and IsSpellInRange(GetSpellInfo(57994), fTarget) == 1
and PQR_UnitFacing("player", fTarget) then
local spellName, _, _, _, startCast, endCast, _, _, canInterrupt = UnitCastingInfo(fTarget)
for i=1, #InterruptSpells do
if GetSpellInfo(InterruptSpells[i]) == spellName and canInterrupt == false then
if select(2, Nova_CastingInfo(fTarget)) >= 20
and PQR_UnitFacing("player",fTarget,180)
then
PQR_CustomTarget = fTarget
return true
end
end
end
end
local tTarget = "target"
if UnitExists(tTarget)
and IsSpellInRange(GetSpellInfo(57994), tTarget) == 1
and PQR_UnitFacing("player", tTarget) then
local spellName, _, _, _, startCast, endCast, _, _, canInterrupt = UnitCastingInfo(tTarget)
for i=1, #InterruptSpells do
if GetSpellInfo(InterruptSpells[i]) == spellName and canInterrupt == false then
if select(2, Nova_CastingInfo(tTarget)) >= 20
and PQR_UnitFacing("player",tTarget,180)
then
PQR_CustomTarget = tTarget
return true
end
end
end
end
end