In this rule

Historical Rules · 14 April 2023

Rule 803.1b

Official source text from the 14 April 2023 Rules release

Permalink

If the attack right option is used, a player can attack only an opponent seated immediately to their right, a planeswalker that player controls, or a battle that player protects. If a player’s nearest opponent to the right is more than one seat away, the player can’t attack.

Find this number in the current Rules