> ## 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 sur une cellule spécifique sans vérifications.

Lancer un sort sur une cellule spécifique sans vérifications.

#### 🎮 Méthode

```lua theme={null}
fightAction: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` si le sort est lancé avec succès, `false` sinon. |

#### 💡 Exemple

```lua theme={null}
local cellId = fightAction:getNearestEnemy()
local spellId = ATTACK_SPELLS[tostring(character:breed())]
if fightAction:canCastSpellOnCell(fightCharacter:getCellId(), spellId, cellId) == 0 then
    fightAction:castSpellOnCell(spellId, cellId)
end
```
