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

# castSpellOnCell

> Lancer un sort avec une invocation sans validation préalable.

Lancer un sort avec une invocation sans validation préalable.

#### 🎮 Méthode

```lua theme={null}
fightSlave:castSpellOnCell(spellId, cellId)
```

#### 📝 Arguments

| Nom       | Type  | Description                      |
| --------- | ----- | -------------------------------- |
| `spellId` | `int` | Identifiant du sort.             |
| `cellId`  | `int` | Identifiant de la cellule cible. |

#### 💎 Valeur de retour

| Type      | Description                             |
| --------- | --------------------------------------- |
| `boolean` | `true` en cas de succès, `false` sinon. |

#### 💡 Exemple

```lua theme={null}
if fightSlave:canCastSpellOnCell(fightSlave:cellId(), 183, enemyCell) == 0 then
    fightSlave:castSpellOnCell(183, enemyCell)
end
```
