Do conditions other than anger invalidate a judge's ruling?
General Chapter
Al-Mughni
Book of Judiciary
Primary text
Every condition that occupies the judge's mind, such as extreme hunger, severe thirst, distressing pain, the need to relieve oneself, intense drowsiness, worry, grief, sadness, or even intense joy, falls under the ruling pertaining to anger. These states prevent the necessary presence of heart and complete thought required to ascertain the truth, and thus disqualify the judge.
Supporting text
If a judge rules while in one of these states or similar conditions, the ruling is generally not enforced because it is prohibited, and prohibition implies invalidity.