If you have the spell Osmose, you can take MagiMaster out by sapping all it's MP, but this will take a pretty long time since he got 50000 MP. Nonetheless, this is the only way you can get trough it without hacking the save file.