Code:
local InterruptSpells = { 635, 47540, 19750, 82326, 51505, 62809, 331, 77472, 48500, 8936, 5782 }
if select(2, GetSpellCooldown(19647, "BOOKTYPE_PET")) == 0 and UnitExists("pet") and IsSpellKnown(19647, true) == true then
for y=1, 5 do
local aTarget = "arena"..tostring(y)
if UnitExists(aTarget) and IsSpellInRange(tostring(GetSpellInfo(19647)), aTarget) == 1 then
local spellName, _, _, _, _, endCast, _, _, canInterrupt = UnitCastingInfo(aTarget)
for i, v in ipairs(InterruptSpells) do
if GetSpellInfo(v) == spellName and canInterrupt == 1 then
if (endCast/1000) - GetTime() < 0.5 then
PQR_CustomTarget = aTarget
return true
end
end
end
end
end
end
and mage iteration i first made thinking he was a mage
Code:
local InterruptSpells = { 635, 47540, 19750, 82326, 51505, 62809, 331, 77472, 48500, 8936, 5782 }
if select(2, GetSpellCooldown(2139)) == 0 then
for y=1, 5 do
local aTarget = "arena"..tostring(y)
if UnitExists(aTarget) and IsSpellInRange(tostring(GetSpellInfo(2139)), aTarget) == 1 then
local spellName, _, _, _, _, endCast, _, _, canInterrupt = UnitCastingInfo(aTarget)
for i, v in ipairs(InterruptSpells) do
if GetSpellInfo(v) == spellName and canInterrupt == 1 then
if (endCast/1000) - GetTime() < 0.5 then
PQR_CustomTarget = aTarget
return true
end
end
end
end
end
end
none of these are tested and i almost guarantee them to be broken
