PHP Code:
if castInterruptable then
--target is casting something that is interruptable.
--the following 2 variables are named logically... value is in seconds.
local timeSinceStart = (GetTime() * 1000 - castStartTime) / 1000
local timeLeft = ((GetTime() * 1000 - castEndTime) * -1) / 1000
local castTime = castEndTime - castStartTime
local currentPercent = timeSinceStart / castTime * 100000
--interrupt percentage check
if currentPercent < PQR_InterruptPercent then
return false
end
Checks to see if spell being casted isn't auramasteried or whatever
PHP Code:
if PQR_IsOnInterruptList(castName) or PQR_IsInterruptAll() then
PQR_Debug("Casting interrupt on "..customTarget)
CastSpellByID(interruptSpell, customTarget)
return true
end
Then it flies through the interrupt lists for your class and executes.
https://www.assembla.com/code/nova-p..._Abilities.xml
That comes right from the nova interrupt profile