Passer au contenu principal
Lancer un sort avec une invocation sans validation préalable.

🎮 Méthode

fightSlave:castSpellOnCell(spellId, cellId)

📝 Arguments

NomTypeDescription
spellIdintIdentifiant du sort.
cellIdintIdentifiant de la cellule cible.

💎 Valeur de retour

TypeDescription
booleantrue en cas de succès, false sinon.

💡 Exemple

if fightSlave:canCastSpellOnCell(fightSlave:cellId(), 183, enemyCell) == 0 then
    fightSlave:castSpellOnCell(183, enemyCell)
end