Actions
castSpellOnCell
Lancer un sort sur une cellule spécifique sans vérifications.
Lancer un sort sur une cellule spécifique sans vérifications.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Lancer un sort sur une cellule spécifique sans vérifications.
fightAction:castSpellOnCell(spellId, cellId)
| Nom | Type | Description |
|---|---|---|
spellId | int | Identifiant du sort. |
cellId | int | Identifiant de la cellule cible. |
| Type | Description |
|---|---|
boolean | true si le sort est lancé avec succès, false sinon. |
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