I have this:
function midcast(spell,action)
if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' then
if string.find(spell.english,'Utsusemi') then
if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then -- Cancel Copy Image 1 & 2 For Utsusemi: Ichi --
send_command('@wait 1.7;cancel Copy Image*')
end
and it was something I pulled from example lua's and I found that it didnt cancel properly. I had a single copy image left on my Ni spell, and casted a fresh Ichi spell, but it didnt cancel properly and i got a 'no effect' for the Ichi spell 
It wasnt instant-cast either
Can I get a look-over to see if something is wrong?