# LifeSteal

The `LifeSteal` module grants the attacker health regeneration when they deal damage to another player. It can be configured to heal a fixed amount or a percentage of the damage dealt, based on the `PercentageBased` property.

### Configuration

| Value                 | Description                                                                                                                      |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `PercentageBased`     | A boolean value. If `true`, the attacker heals a percentage of the damage dealt. If `false`, the attacker heals a fixed amount.  |
| `LifeStealAmount`     | A float value. The fixed amount of health the attacker regains when dealing damage. Used only when `PercentageBased` is `false`. |
| `LifeStealPercentage` | A float value. The percentage of damage dealt that the attacker regains as health. Used only when `PercentageBased` is `true`.   |

### Example

```yaml
custom_modules:
  LifeSteal:
  - PercentageBased: true
    LifeStealAmount: 0.0 # This value is ignored when PercentageBased is true
    LifeStealPercentage: 10.0 # Attacker heals 10% of the damage they deal
```


---

# 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.uci.ucserver.it/uncomplicatedcustomitems/prerelease-content/custommodules/lifesteal.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.
