You're talking about some serious reprogramming here. The magic stat is aways an 8 bit number so it cannot be above 255. Making a spell ignore defence is also tricky. I'm not an expert but that is what I think.