# Battles

On the [adventure](/guides/adventures.md) page, you can send your [troops ](/guides/heroes.md)to [Dungeons ](/guides/adventures.md#dungeons)and[ Treasure Islands](/guides/adventures.md#treasure-island) which leads them to a battle at last. Battles are automated turn-based. The player can set strategies and the formation of troops before the battle. Then watch the battle replay. Also, the user can set the target priority of units, in this case, the unit will attack the highest priority target in its range.&#x20;

Priorities:

* Closest
* Lowest HP
* Highest Damage

<figure><img src="/files/bROsEWPw1rhpRB3bGO7e" alt=""><figcaption></figcaption></figure>

Units lose HP in battles and it takes time (depending on the level of [Barracks](broken://pages/tYNtn6pvebX0t3f6zdn1#barracks)) to recover their HP.

## Damage and Resistance

Armor and Magic Resistance help units to get damaged less in battles.

<figure><img src="/files/hstiTHusw9VROpZcTd8P" alt=""><figcaption><p>How armor and magic resistance mitigate incoming magical or physical damage</p></figcaption></figure>

Here is how Armor affects Physical Damage:

Physical Resistance = 100 / ( 200 / Armor + 1.25))

Example: A unit with 50 Armor will get 2&#x30;**%** less physical Damage:

Physical Resistance = 100 / ( 200 / 50 + 1.25)) =  **20%**

Magic Resistance has the same formula:

Magic Resistance = 100 / ( 200 / Magic Resistance + 1.25)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://whitepaper.chainoflegends.com/guides/battles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
