In this rule

Historical Rules · 19 September 2025

Rule 506.4c

Official source text from the 19 September 2025 Rules release

Permalink

If a creature is attacking a planeswalker or battle, removing that planeswalker or battle from combat doesn’t remove that creature from combat. It continues to be an attacking creature, although it is not attacking any player, planeswalker, or battle. It may be blocked. If it is unblocked, it will deal no combat damage.

Find this number in the current Rules