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

# getCountInvocation

> Obtenir le nombre d'invocations actives pour ce personnage.

Obtenir le nombre d'invocations actives pour ce personnage.

#### 🎮 Méthode

```lua theme={null}
fightCharacter:getCountInvocation()
```

#### 💎 Valeur de retour

| Type  | Description                   |
| ----- | ----------------------------- |
| `int` | Nombre d'invocations actives. |

#### 💡 Exemple

```lua theme={null}
-- Sadida : invoquer si de la place est disponible
if fightCharacter:getCountInvocation() < 2 then
    local myCell = fightCharacter:getCellId()
    local adj = fightAction:getAdjacentCells(myCell)
    for _, cell in ipairs(adj) do
        if fightAction:isFreeCell(cell) then
            fightAction:castSpellOnCell(183, cell)  -- sort d'invocation
            break
        end
    end
end
```
