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.
Obtenir le nombre d’invocations actives pour ce personnage.
🎮 Méthode
fightCharacter:getCountInvocation()
💎 Valeur de retour
| Type | Description |
|---|
int | Nombre d’invocations actives. |
💡 Exemple
-- Sadida : invoquer si de la place est disponible
if fightCharacter:getCountInvocation() < 2 then
local myCell = fightCharacter:getCellId()
local adj = fightAction:getAdjacentCells(myCell)
for _, cell in ipairs(adj) do
if fightAction:isFreeCell(cell) then
fightAction:castSpellOnCell(183, cell) -- sort d'invocation
break
end
end
end