> For the complete documentation index, see [llms.txt](https://starfall-handbook.rosentica.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://starfall-handbook.rosentica.jp/combat-system/enemy-detection.md).

# Enemy Detection

Enemy Detection Order:

* First, target enemies in the **same row**.
* If there are no enemies in the same row, target the **next row** below.
* If no enemies are present in the next row, target the **row above**.

<figure><img src="https://4166820217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZY0uzUj6gcYKBW9hAfoY%2Fuploads%2F0aT2YpFhI4TF9oWoc5yP%2Fimage.jfif?alt=media&amp;token=64b74f5d-929f-4bac-94db-557fcc2bacc4" alt=""><figcaption></figcaption></figure>
