The parameter PatternAttack is responsible for area-of-effect damage (you can see an example with the blade dancers; it's very simple). Next, you just need to add the animation of the fireball, and the fifth-level version of the mages will be ready.
It's more complicated with specialization. Changing the description is easy, but the creatures are hardcoded, if I'm not mistaken.
Maybe you can help?