Passer au contenu principal

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.

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

🎮 Méthode

fightAction:castSpellOnCell(spellId, cellId)

📝 Arguments

NomTypeDescription
spellIdintIdentifiant du sort.
cellIdintIdentifiant de la cellule cible.

💎 Valeur de retour

TypeDescription
booleantrue si le sort est lancé avec succès, false sinon.

💡 Exemple

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