... the spell Paralyze. Enter from the Hall of the Pit, and stay within reach of the door. Cast Paralyze on the nearest Queen of the Dead - with any luck, you should paralyze her before she casts Pain Reflection. Use ranged spells and missiles to kill her. If you have any spells and a decent amount of hit points left (sometimes you will, and sometimes you won't), take out some of the Undead, but don't tackle another QotD. Then exit, rest, and heal. Repeat as necessary. Remember, if you get badly damaged and near to losing party members, hit "Return" to enter turn based mode, turn round, and click on the door to exit - and don't wait to get that last attack in! That way lies failure. The process is slow, but it's reasonably safe. As long as you can kill one QotD without your party getting itself killed, you can clear The Pit.