# HealOnKill

This module provides a mechanism to heal the player who kills another player. It allows for configuring the amount of health restored and can convert excess healing into Artificial Health (AHP) if the player's health is already full.

### Configuration

| Value                | Description                                                                                                                                                                                                |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `HealAmount`         | The amount of health to restore to the player upon killing an enemy. This value can be a float.                                                                                                            |
| `ConvertToAhpIfFull` | If `true`, and the player's health is already at maximum, the `HealAmount` will be converted into Artificial Health (AHP) instead of regular health. If `false`, healing will not occur if health is full. |

### Example

```yaml
custom_modules:
  HealOnKill:
  - HealAmount: 25.0
    ConvertToAhpIfFull: true
```


---

# 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/healonkill.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.
