# Units

A unit is the fundamental building block of the *Battle for Blockchain* universe. All BFB mechanics revolve around units, forming the foundation for more complex interactions. Whether you're waging battles, increasing your exposure, or striving for victory, units are the primary tools that drive every aspect of the game.

### Unit

A unit is a foodie hero that fights by your side and follows your commands. To acquire one, you'll need to purchase it from the Unit Shop using $BFB. Once owned, the unit will patiently wait in your inventory, ready for action.

Units come in all shapes and sizes, each with a unique stat composition and a powerful skill—a special ability that charges over time and can turn the tide of battle.

To launch an attack or defend against one, you’ll need to deploy your units. The battlefield supports either 16 or 20 units per side, meaning you'll need the full required amount to participate in a match.

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

### Stats

Units are described with different stats, which affect their fighting capabilities. These stats are:

* **Melee Damage** - The amount of damage a unit deals in close-quarters (hand-to-hand) combat.
* **Range Damage** - The amount of damage a unit deals when attacking from a distance.
* **Health** - The total number of hit points a unit has.
* **Might** - The damage a unit deals to the enemy Commander if it reaches the opposing side of the battlefield.
* **Critical Chance** - The percentage chance an attack has to become a critical strike.
* **Critical Damage** - The percentage increase to damage dealt when an attack is a critical strike.
* **Range** - The distance a unit can attack. A range of 1 is considered melee.
* **Starting mana** - The amount of mana a unit begins with at the start of battle.
* **Mana regeneration** - The amount of mana a unit gains at the start of its turn.

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

Units also have stats connected with their unique abilities.

### Unit Behavior

When a battle begins, units follow a strict set of rules and conditions in their actions:

1. **Mana Regeneration** – The unit regenerates mana at the start of its turn.
2. **Skill Activation** – If the unit has enough mana to use its ability—and using it is considered reasonable\*—it will cast its skill.
3. **Ranged Attack** – If the unit did not cast its skill and has a ranged attack, it will perform a ranged attack.
4. **Melee Attack** – If the unit did not cast its skill, is not ranged, and has a target in melee range, it will perform a melee attack. If the melee attack eliminates the target and the space ahead becomes empty, the unit will move forward into that space.
5. **Movement** – If the unit cannot attack and the space in front is empty, it will move forward.
6. **Damaging Vigor** – If the unit reaches the last available space on the battlefield, it will sacrifice itself to deal damage directly to the enemy Commander.

These are the general rules of engagement. Certain exceptions may apply—for example, effects caused by items or special mechanics.

\**game checks various conditions to deem skill reasonable. Units won't cast skill if they do not have a target, Hechoy won't heal if there is nothing to heal, Roe won't teleport until he can.* &#x20;

### Unit Shop

The Unit Shop is where you can restock your unit inventory. However, unit prices are not fixed—they change gradually over time. This is because the unit market is shared among all *Battle For Blockchain* players, and prices are driven by supply and demand dynamics.

#### Units Basket

Unit pricing in *Battle For Blockchain* is based on the concept of the **Units Basket**. This system ensures that purchasing 14 different units should always cost a total of **1400 $BFB**. As a result, fielding a well-balanced 16-unit army should typically cost around **1600 $BFB**.

#### Supply / Demand

Each interaction with the Unit Shop leaves a lasting impact on unit pricing. When you buy a unit, its price increases by **13Δ**, where **Δ** is a constant value, while the price of every other unit decreases by **1Δ**. This way, purchasing one of each unit results in a net price change of zero.

And remember—the market is shared among all players. When one player buys a Kabango, its price increases for *everyone*.

This system also acts as a natural balancing mechanism. Stronger units tend to be more popular, which drives up their prices relative to others. That makes them riskier to buy compared to cheaper, less-picked units—encouraging players to build a mix of both.

### Unit Levels

Units can also be leveled, which is closely described in the [Upgrades](/battle-for-blockchain/game-basics/units/upgrades.md) section.


---

# 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://battle-for-blockchain.gitbook.io/battle-for-blockchain/game-basics/units.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.
