> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# isInFight

> Vérifier si le personnage est actuellement en combat.

Vérifier si le personnage est actuellement en combat.

#### 🎮 Méthode

```lua theme={null}
character:isInFight()
```

#### 💎 Valeur de retour

| Type      | Description                                           |
| --------- | ----------------------------------------------------- |
| `boolean` | `true` si le personnage est en combat, `false` sinon. |

#### 💡 Exemple

```lua theme={null}
if character:isInFight() then
  global:printMessage("En combat !")
else
  global:printMessage("Déplacement possible")
end
```
