local _,_,_,_,_,_,_,_,notInterruptible = UnitCastingInfo("target")
local _,_,_,_,startTime,endTime = UnitCastingInfo("target")
local randomTime = math.random (500,1200)
local InRange = IsSpellInRange(GetSpellInfo(1766),"target")
if UnitCastingInfo("target") and notInterruptible ~= true and InRange == 1
and PQR_SpellAvailable(1766) and ((GetTime()*1000) - randomTime) >= startTime
then
--PQR_WriteToChat((((endTime - startTime) / 1000) - (((endTime - startTime) / 1000) - (randomTime / 1000))), "interrupt after")
CastSpellByName(GetSpellInfo(1766),"target")
return true
end