To prevent from getting mazed you can berserk, or use protection from magic scroll (get two in waukeens promenade, Ribalds store), or cast spell protection (abjuration).
You are talking about Kangaxx. Try the search button, there are ALOT of posts about different strategies to defeat him.
------------------
Hmmmmmm...Yes, that must be it