What I did was I threw the magisters next to the slimes and then used spin web to prevent everything from being able to move. I let the magisters do all the fighting for me while I sat at the top of the tower and kept everything locked down. The stupid npc didn't even take damage.