Final Fantasy 9, but as I was a wickle child, I got stuck on the second black waltz and gave up! I couldn't work out that he would attack with magic if you attacked with magic...