> 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/critical-hit-check.md).

# Critical Hit Check

In combat, all forms of damage have a chance to critically hit (also known as a "crit"). The likelihood of landing a critical hit depends on two factors: the attacker's **critical hit rate** and the defender's **critical resistance rate**.

#### Critical Hit Calculation:

1. **Critical Hit Rate:**
   * This is primarily determined by the attacker's **Agility** and any related skills, talents, or equipment that increase crit chance.
2. **Critical Resistance Rate:**
   * The defender’s ability to resist critical hits, primarily affected by their **Agility** or defensive traits, skills, or talents.
3. **Final Critical Chance Formula:**&#x20;

**Final Critical Chance = Attacker’s Crit Rate − Defender’s Crit Resistance Rate**

* If the result is positive, it indicates the percentage chance that the attack will be a critical hit.
* If the result is zero or negative, the critical hit is not possible.
* A single attack uses one critical hit check and can only trigger the "on critical hit" keyword once.

#### Example:

* **Attacker's Crit Rate** = 30% (due to high Agility and buffs)
* **Defender's Crit Resistance Rate** = 20% (from talents or equipment)

The **Final Critical Chance** would be:&#x20;

30% - 20% = 10%&#x20;

This means there is a 10% chance that the attacker will land a critical hit.
