Code:
-- interupts: Mind Freeze:47528, Skull Bash: cat:80965 Bear:80964, Rebuke:96231, Kick:1766, Pummel:6552, Counterspell:2139,
local int = 47528
local intn = "Mind Freeze"
local Ss,Sd = GetSpellCooldown(int)
local Scd = Ss + Sd - GetTime()
local pveList = { "Healing Wave","Hex","Shock Blast","Chain Lightning","Lava Bolt","Shadow Strike","Dark Command","Confounding Flames","Warped Twilight","Conjure Twisted Visage","Focused Geyser","Flame Conduit","Chained Mind","Umbral Mending","Tranquility","Pact of Darkness","Charged Shot","Anti-Magic Prison","Reverberating Hymn","Summon Sun Orb","Inferno Leap","Hex","Ritual of Bloodletting","Chain Lightning","Lightning Lash","Greater Heal","Cloudburst","Force of Earth","Magma Eruption","Demon Portal","Force Grip","Holy Fire","Motivate","Seaswell","Fear","Drain Life","Pain and Suffering","Unholy Empowerment","Cursed Bullets","Fireball Volley","Ancient Power","Heal","Holy Light","Healing Wave","Flash Heal","Ancient Power","Blood Leech","Whispers of Hethiss","Tears of Blood" }
local sname,_,_,_,_,_,_,_,sint = UnitCastingInfo("target")
local scname,_,_,_,_,_,_,scint = UnitChannelInfo("target")
if IsSpellInRange(intn,"target") == 1 and Scd < 0 then
if sint == false then
for i,v in ipairs(pveList) do
if sname == v then CastSpellByID(int,"target") return false end
end
elseif scint == false then
for i,v in ipairs(pveList) do
if scname == v then CastSpellByID(int,"target") return false end
end
end
end