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

# manageState

> Appliquer ou supprimer un effet de statut.

Appliquer ou supprimer un effet de statut.

#### 🎮 Méthode

```lua theme={null}
fightAction:manageState(stateId, stateTurns)
```

#### 📝 Arguments

| Nom          | Type  | Description                             |
| ------------ | ----- | --------------------------------------- |
| `stateId`    | `int` | ID de l'effet de statut.                |
| `stateTurns` | `int` | Tours à appliquer (`0` pour supprimer). |

#### 💎 Valeur de retour

| Type   | Description |
| ------ | ----------- |
| `void` | —           |

#### 💡 Exemple

```lua theme={null}
fightAction:manageState(42, 3)  -- Appliquer l'état 42 pendant 3 tours
fightAction:manageState(42, 0)  -- Supprimer l'état 42
```
