> For the complete documentation index, see [llms.txt](https://docs.sparkframework.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sparkframework.dev/documentation/user-guide/plugins/combat/healing-types.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sparkframework.dev/documentation/user-guide/plugins/combat/healing-types.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
