Sounds like you got a little adventurous with ryujin, lost a pile raiding, and then got turned on. Poison cloud and sleep cloud might have handled the flagellants, at least with some blockers to slow them down. Lucky militia or earth elementals or whatever. Maybe you should have left the thrones alone and gone for a player? All your neighbors were kind of scary though.