# Healing Types

Healing types classify the kind of healing an ability provides. Like damage types, they are split into **Main Healing Types** and **Secondary Healing Types**.

## Main Healing Types

Main healing types represent the broad category of healing. They are used in the healing scaling system — stats can provide scaling bonuses based on main healing type.

Create them in **Combat > Formulas > Main Healing Types**.

Examples: Direct Heal, Heal Over Time, Absorption, Regeneration.

When a healing effect has a main healing type assigned, the healing scaling calculator checks all caster stats for matching healing type scaling entries.

## Secondary Healing Types

Secondary healing types provide finer classification. They are **optional** and allow more precise scaling.

Create them in **Combat > Formulas > Secondary Healing Types**.

Examples: Holy, Nature, Arcane, Blood, Divine, Light.

Secondary types let you create specialized stats like "Holy Healing Bonus" that only affects Holy-typed healing abilities.

## How Healing Scaling Works

Stats can define healing type scaling entries, identical in structure to damage type scaling:

| Field              | Description                                                   |
| ------------------ | ------------------------------------------------------------- |
| Healing Type       | Which healing type this scaling applies to.                   |
| Scaling Mode       | **Flat**, **Percentage**, **Formula**, or **None**.           |
| Flat Scaling       | For Flat mode: healing bonus per point of this stat.          |
| Percentage Scaling | For Percentage mode: percentage bonus per point of this stat. |
| Scaling Formula    | For Formula mode: a formula entry for custom scaling logic.   |

## Healing Calculation Flow

The healing calculation follows the same flow as damage:

1. Start with **Base Healing** × **Stack Multiplier**.
2. If a **Calculation Formula** is set, evaluate it with caster/target stats as variables.
3. If a **Main Healing Type** is set, apply healing type scaling from all caster stats.
4. If **Status Condition Modifiers** are configured, apply bonus healing based on active statuses.
5. The final healing is applied to the **Target Stat** (typically Health).


---

# 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://docs.sparkframework.dev/documentation/user-guide/plugins/combat/healing-types.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.
