# 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&#x26;token=64b74f5d-929f-4bac-94db-557fcc2bacc4" alt=""><figcaption></figcaption></figure>
