Passer au contenu principal
Obtenir le nombre d’invocations actives pour ce personnage.

🎮 Méthode

fightCharacter:getCountInvocation()

💎 Valeur de retour

TypeDescription
intNombre 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